Glcd SH1106 Font Sizes not working correctly

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
trifonics
Posts: 5
http://meble-kuchenne.info.pl
Joined: Fri Dec 11, 2020 8:27 am

Glcd SH1106 Font Sizes not working correctly

Post 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 2882 times
v8 Correct Display
v8 Correct Display
GLCD SH1106 I2C FCv8.JPG (13.52 KiB) Viewed 2882 times
FC v9 Display - Incorrect Fonts
FC v9 Display - Incorrect Fonts
GLCD SH1106 I2C FCv9.JPG (13.13 KiB) Viewed 2882 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: Glcd SH1106 Font Sizes not working correctly

Post 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

BenR
Matrix Staff
Posts: 1747
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 444 times
Been thanked: 604 times

Re: Glcd SH1106 Font Sizes not working correctly

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

trifonics
Posts: 5
Joined: Fri Dec 11, 2020 8:27 am

Re: Glcd SH1106 Font Sizes not working correctly

Post by trifonics »

Great,

Thanks for the help, will give it a bash.


All The best

trifonics
Posts: 5
Joined: Fri Dec 11, 2020 8:27 am

Re: Glcd SH1106 Font Sizes not working correctly

Post 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

Post Reply