GLCD Font Initialisation error

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
mnfisher
Valued Contributor
Posts: 1056
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 107 times
Been thanked: 546 times

GLCD Font Initialisation error

Post by mnfisher »

I struggled to get some code using a glcd ssd1306 (i2c) working. I was getting some 'garbage' in part of the print and a crash (on MCU) after a few prints.

Flipping back to v8 - and all worked well.

Trying a simple test case - here I have a glcdssd1306(i2c) 128 x 32 attached to an Arduino UNO.
glcd_bug.fcfx
(9.86 KiB) Downloaded 134 times
Output is not as expected (it's in a 'odd' font) - although it doesn't display the crash...

The 'fix' is to change the glcd font from 'legacy' to another font then back to legacy - then the text is displayed correctly - but it looks like the 'font' data isn't correctly initialised until this property is changed..

Martin

BenR
Matrix Staff
Posts: 1796
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 458 times
Been thanked: 624 times

Re: GLCD Font Initialisation error

Post by BenR »

Hi Martin,

Many thanks for letting us know. I've now fixed this at the source and exported a few components to solve the problem including the I2C SSD1306.

It's present in a fair few of the GLCD components so I've fixed all the sources but not exported them all yet.

Post Reply