GLCD (SSD1306) I2C Component

For general Flowcode discussion that does not belong in the other sections.
Post Reply
dz2869
Posts: 14
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 8:29 pm
Has thanked: 1 time
Been thanked: 1 time

GLCD (SSD1306) I2C Component

Post by dz2869 »

I am trying to migrate a FC8 project to FC9 that uses the SSD1306_I2C component.
In FC8 there were 4 fonts 5X8 (Font0), 10X8 (Font1), 10X16 (Font2) and 5X16 (Font3).

In FC9 what is the easy migration path to setup these fonts?
I see the font count variable in the properties window, I assume this would need to go to 4.
I also see the Legacy(8) font and font width that can be changed to 5 which should be FC8 Font0.
I do not see how to setup the other 3 fonts.
I need to minimize memory usage also

Any help on this is appreciated.

Thanks,
DC

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

Re: GLCD (SSD1306) I2C Component

Post by BenR »

Hello

You would set the font count property to 1 and reference font 0 on the print macros.

Use the set font scaler macro to alter the scale of the font.

dz2869
Posts: 14
Joined: Tue Dec 08, 2020 8:29 pm
Has thanked: 1 time
Been thanked: 1 time

Re: GLCD (SSD1306) I2C Component

Post by dz2869 »

Thanks for the quick reply!
I tried the font scaler with number of fonts set to one.
This seems to work good.

Problem now is program memory space.
In FC8 my project used 82.5% of program memory space
FC9 uses 101.5%
PIC18F45K40

Does this sound right?
Or does the new component require a lot more memory space?

Thanks,
DC

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

Re: GLCD (SSD1306) I2C Component

Post by BenR »

Hello.

The new component should be fairly similar in terms of rom usage.

Would it be possible to see your program so I can try and work out what's using so much more of the rom. If you don't want to post the project publicly you can send it to me via a pm.

Post Reply