Шрифт лежит в PROGMEM
Код: Выделить всё
const unsigned char SmallFont[] PROGMEM={
0x08,0x0C,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // <Space>
............
const unsigned char BigFont[] PROGMEM={
0x10,0x10,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, .............
const unsigned char SevenSegNumFont[] PROGMEM={
0x20,0x32,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x01,0xFF,0xFF ....
что нужно,
Код: Выделить всё
#define Font8x12 1
#define Font16x16 2
#define Font32x50 3
void UTFT_printChar(uchar sym, uint x, uint y, uchar font){
uint FontSel; // <------------------
if(font == Font8x12){
FontSel = SmallFont; // <------------------
}
if(font == Font16x16){
FontSel = BigFont; // <------------------
}
if(font == Font32x50){
FontSel = SevenSegNumFont; // <------------------
}
cfont_x_size = pgm_read_byte(FontSel); // Высота символа
cfont_y_size = pgm_read_byte(FontSel+1); // Ширина символа, число байт


