Page 1 of 1

GLCD (SSD1306) Clear function does not fully clear

Posted: Thu Feb 23, 2023 10:04 pm
by pschoon
Hi,

I'm using a Groove OLed display SSD1308, 128x64.

My designs from the past do work perfectly with this display but recently with modifying the design the display clear function does not clear the full display.
The first 2 pixels of every line are not cleared except for a few pixels..
Please check..

Re: GLCD (SSD1308) Clear function does not fully clear

Posted: Fri Feb 24, 2023 8:58 am
by Steve-Matrix
A couple of quick questions:

Is this v9 of v10? (please use the topic icon to identify new posts in future as it makes it clear which version of Flowcode you are using)

And does this problem relate to simulation, the downloaded embedded code, or both?

Re: GLCD (SSD1308) Clear function does not fully clear

Posted: Sat Feb 25, 2023 12:02 pm
by pschoon
Hi Steve,

Thanks for the quick response.

I'm using Flowcode V9 (3.1.36) Professional.
The problem occurs with the downloaded code. i'm not using simulation.

Re: GLCD (SSD1306) Clear function does not fully clear

Posted: Sat Feb 25, 2023 2:13 pm
by pschoon
Hi Steve,

I solved the issue.
Reading the Heltec Oled datasheets revealed that there are some common problems.
According to the common problem sheet reveals issues with the first and last pixels of a line.
This is a production issue..
Heltec2.jpg
Heltec2.jpg (26.79 KiB) Viewed 2432 times
Heltec1.jpg
Heltec1.jpg (23.38 KiB) Viewed 2432 times
So fiddling with the Pixel Width or Offset X properties solves the problem.
In this case i had to shift two pixels to the right..

Learning curve...


V1.3_Display Test.fcfx
(16.88 KiB) Downloaded 333 times

Re: GLCD (SSD1308) Clear function does not fully clear

Posted: Sun Feb 26, 2023 11:11 am
by Steve-Matrix
Please post the .c and .h files generated by your project.

Re: GLCD (SSD1306) Clear function does not fully clear

Posted: Mon Feb 27, 2023 8:05 pm
by pschoon
.c file
no .h files..
V1.3_230207.c
(405.34 KiB) Downloaded 321 times