Page 1 of 1

GLCD (SSD1306) I2C Component

Posted: Wed Jan 18, 2023 6:11 pm
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

Re: GLCD (SSD1306) I2C Component

Posted: Wed Jan 18, 2023 6:51 pm
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.

Re: GLCD (SSD1306) I2C Component

Posted: Wed Jan 18, 2023 8:50 pm
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

Re: GLCD (SSD1306) I2C Component

Posted: Wed Jan 18, 2023 11:49 pm
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.