Skip to main content
CGadg
Associate III
August 30, 2023
Solved

Graphics suite and SSD1306 OLED, I2C or SPI

  • August 30, 2023
  • 5 replies
  • 5000 views

Will the TouchGFX and STM Cube IDE let me work with SSD1306 devices? If so how much memory space will I need per image and overall space to run it? The images will be 128x64 pixels. Which range of ST microcontrollers can be used for this?

The labels allowed for this post were not relevant, so ignore the "EEPROM devices"

This topic has been closed for replies.
Best answer by Tesla DeLorean

The SSD130x displays are workable with every STM32 model/family

ST doesn't sell them or use them in many products, perhaps seen a handful on an IoT or Modem boards. Don't expect them to build TouchGFX libraries / drivers for them.

The screen buffer is a pretty simple monochrome bit map at 128x64, that would be 1KB. Was dealing with more complex screens in secondary school.

TBH I think TouchGFX is overkill, there's probably BSP example code you could use for painting lines, draw circles, or write text fonts.

5 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
August 30, 2023

The SSD130x displays are workable with every STM32 model/family

ST doesn't sell them or use them in many products, perhaps seen a handful on an IoT or Modem boards. Don't expect them to build TouchGFX libraries / drivers for them.

The screen buffer is a pretty simple monochrome bit map at 128x64, that would be 1KB. Was dealing with more complex screens in secondary school.

TBH I think TouchGFX is overkill, there's probably BSP example code you could use for painting lines, draw circles, or write text fonts.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Senior
August 30, 2023
Dolence
Associate III
September 1, 2023

I would recommend using u8g2 lib for this. It is lightweight, can be set to use full buffer and page buffer, have lots of fonts.

CGadg
CGadgAuthor
Associate III
September 4, 2023

Thanks for your replies, I'm not ready to test still though.

CGadg
CGadgAuthor
Associate III
September 6, 2023

I've gone for a popular library on Github by Aleksander Alekseev, stm32-ssd1306-master. This has let me operate graphics code quite easily and text. There is a video on YouTube for this which leaves out the graphics for some reason.