UKHeliBob:
I was think more of each letter being declared like thischar letter_a[] =
{
0b00000000,
0b00111100,
0b01000010,
0b01000010,
0b01000010,
0b01111110,
0b01000010,
0b01000010
}
8 bytes per letter instead of 64 bytes per letter. Combine this with using the ASCII value of the letter as an index to a 2 dimensional array of letters defined as above and the code would be vastly reduced in size.
So currently I've done
char letter_a[8]={ 0b00000000,
0b00111100,
0b01000010,
0b01000010,
0b01000010,
0b01111110,
0b01000010,
0b01000010 };
char letter_b[8]={ 0b00000000,
0b01111100,
0b01000010,
0b01000010,
0b01111100,
0b01000010,
0b01000010,
0b01111100 };
char *(ascii_letters_symbols)[256];
ascii_letters_symbols['a']=letter_a;
ascii_letters_symbols['b']=letter_b;
this->copy_letter(ascii_letters_symbols[letter_to_get]);
it did reduced the momery usage (from 90 to 51) so is that good or I need to tweak it more ?