I am using 128X64 GLCD (KS0108) with ATMEGA32 Micro controller and I using lib given on link https://en.radzio.dxp.pl/ks0108/ for same. I successfully interface it with atmega32 but when I try to change font size 5X8 to 12X16 (TABLE FOR 12x16 IS ALREADY GIVEN IN HEADER) in below function by changing value of i loop to 12 and (12*charToWrite) but I not gatting any result.
Code C - [expand]
1
2
3
4
5
6
7
8
9
void GLCD_WriteChar(char charToWrite){int i
charToWrite -=32;for(i =0; i <5; i++)
GLCD_WriteData(GLCD_ReadByteFromROMMemory((char*)((int)font5x8+(5* charToWrite)+ i)));
GLCD_WriteData(0x00);}
Hello!
You will need to rearrange your data in 2 rows. On most of the small graphic LCDs, 1 byte writes a column
of 8 pixels. So you need to write the upper part of your character on one 8-pixel band, and the lower part
on the next 8-pixel band.
Nothing complicated, just some index manipulation.
Pascal