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
http://www.fabglib.org
Other
1.48k stars 219 forks source link

SSD1306 Dsisplay issue #361

Open MorgothCreator opened 1 year ago

MorgothCreator commented 1 year ago

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.

MorgothCreator commented 1 year ago

Fixed it, replace:

with: