Page 1 of 1

Glcd SH1106 Font Sizes not working correctly

Posted: Mon Jan 25, 2021 12:25 pm
by trifonics
Hi,
I started a project in Flowcode v8 using the gLCD SH1106 I2C Component
which displayed the chosen font size correctly in both simulation and hardware.
The same project in v9 does not display font sizes correctly.
Changing the font size in the gLCD "PrintNumber Macro" has no effect in simulation or hardware.
Project is running on a PIC 16f1788 32MHz clock.
Please assist
changing font has no effect
changing font has no effect
FCv9 Print# Component Macro_LI.jpg (49.66 KiB) Viewed 5586 times
v8 Correct Display
v8 Correct Display
GLCD SH1106 I2C FCv8.JPG (13.52 KiB) Viewed 5586 times
FC v9 Display - Incorrect Fonts
FC v9 Display - Incorrect Fonts
GLCD SH1106 I2C FCv9.JPG (13.13 KiB) Viewed 5586 times

Re: Glcd SH1106 Font Sizes not working correctly

Posted: Mon Jan 25, 2021 8:08 pm
by jgu1
Hi trifonic!

In FC9 it is on a new way to change font. Now you can choose different font and also the size. Ben give a very good explanation here:
https://www.youtube.com/watch?v=HN8EI64ADic

Hope this help :D

Jorgen

Re: Glcd SH1106 Font Sizes not working correctly

Posted: Mon Jan 25, 2021 11:24 pm
by BenR
Hi Trifonic

Yes Font parameter now should be set to 0 (assuming you want everything in the same font) and you can use the SetFontScaler function to set the X,Y scale of the font before printing. Default is 1,1.

Sorry for any inconvenience but hopefully the new way of doing things is a bit more useful once you get used to it.

Re: Glcd SH1106 Font Sizes not working correctly

Posted: Wed Jan 27, 2021 7:02 pm
by trifonics
Great,

Thanks for the help, will give it a bash.


All The best

Re: Glcd SH1106 Font Sizes not working correctly

Posted: Thu Jan 28, 2021 1:31 pm
by trifonics
All works well once more.
The v9 gLCD font setup is a lot more flexible than previously.
Thanks again for your assistance Ben & Jorgen

All the best