Hello
I'm using a library to write text to a display, this library uses .h files for the fonts (eg. font8x16.h).
In the file it looks like this:
#define FONT_8X16_LEN 1544
const byte font_8x16[FONT_8X16_LEN] __attribute__((section(".progmem.data"))) =
{
70, 86, 32,127, 8, 16, 2, 16,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0,252,252, 0, 0, 0, 0, 0, 0, 51, 51, 0, 0, 0,
....lot of more lines.
Currently i use 3 fonts. Since my sketch is running out of program space, i wonder about 2 things:
1.) Does the Compiler write only the characters that are used in the code, or does it write all the data to flash? Like in the case of the 8x16 font i guess it would write 1544 bytes?
If it writes the complete 1544 bytes, see 2.)
2.) i have a attached a zip of the libary. to write a string to the display, you have to use
DOG.string(start column, start line, fontname, "thisIsAText")
Lets say i only need 10 characters of the font. Can i shrink the font by only defining the needed characters ? And how to modify the library?
I hope someone could help me with this, since my board is already soldered.. and i really run out of space. 1k or so would save me alot of hassle...
Regards
johnny
dog_7565R.zip (18.9 KB)