fdivitto / FabGL

ESP32 Display Controller (VGA, PAL/NTSC Color Composite, SSD1306, ST7789, ILI9341), PS/2 Mouse and Keyboard Controller, Graphics Library, Sound Engine, Game Engine and ANSI/VT Terminal

Home Page:http://www.fabglib.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSD1306 Dsisplay issue

MorgothCreator opened this issue · comments

Thank you for the great LIB you have developed.
Is first time I try to use your library and I encounter an issue with all examples using SSD1306 displays, I do not used any other displays yet.

The issue is that it refreshes only the first row, seems that the driver is making his job correctly because the rest of the display is showing the uninitialized allocated RAM of the display buffer, seems that the painting lib does not write the correct buffer pixels, not even the clear function, is stretching horizontally something like the buffer is not 128 pixerls x 8 rows but 1024 pixels x 1 row.

Fixed it, replace:

  • SSD1306_sendCmd(SSD1306_MEMORYMODE, 0b100);

with:

  • SSD1306_sendCmd(SSD1306_MEMORYMODE, 0b000);