GLCD (SSD1306) Clear function does not fully clear

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
pschoon
Posts: 11
http://meble-kuchenne.info.pl
Joined: Thu Dec 31, 2020 2:14 pm
Been thanked: 3 times

Flowcode v9 GLCD (SSD1306) Clear function does not fully clear

Post 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..
Attachments
V1.3_Display Test.fcfx
(16.54 KiB) Downloaded 40 times
Last edited by pschoon on Sun Feb 26, 2023 3:18 pm, edited 1 time in total.

Steve-Matrix
Matrix Staff
Posts: 1264
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

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

Post 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?

pschoon
Posts: 11
Joined: Thu Dec 31, 2020 2:14 pm
Been thanked: 3 times

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

Post 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.
Last edited by pschoon on Sun Feb 26, 2023 3:31 pm, edited 3 times in total.

pschoon
Posts: 11
Joined: Thu Dec 31, 2020 2:14 pm
Been thanked: 3 times

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

Post 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 864 times
Heltec1.jpg
Heltec1.jpg (23.38 KiB) Viewed 864 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 38 times
Last edited by pschoon on Sun Feb 26, 2023 3:41 pm, edited 4 times in total.

Steve-Matrix
Matrix Staff
Posts: 1264
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 279 times

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

Post by Steve-Matrix »

Please post the .c and .h files generated by your project.

pschoon
Posts: 11
Joined: Thu Dec 31, 2020 2:14 pm
Been thanked: 3 times

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

Post by pschoon »

.c file
no .h files..
V1.3_230207.c
(405.34 KiB) Downloaded 39 times

Post Reply