Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 5 months ago.
Dimiter K. KS0108 GLCD Library Y coord glitch?!
Hi everyone.
I have implemented the above mentrioned GLCD driver in one of my projects. Everything works OK, I get a clear text, but only if I use for Y scale (text only) number which are dividibile by 8. e.g. lcd.gotoxy(1,8) it will print a text on lcd, but if I use lcd.gotoxy(1,9) I will get only some undefined blocks of something. If i use 0,8,16,24,32,48 & 64, everything is ok, otherwise it's trash, Any Ideas why?
Regars
2 Answers
11 years, 5 months ago.
That will be the result of the way the KS0108 memory is structured. It uses 1 byte for every 8 vertical pixels. I suppose the library uses fonts of 8 vertical pixels which fits exactly in one byte. The library probably has not been written to correctly split a character across two bytes in vertical direction. So characters only show correctly when the y-coordinate is a multiple of 8. You can fix that behaviour, but it will take some coding.
11 years, 5 months ago.
I thought it would be something like that. I figured out what does the GotoXY function do, but I'll cope with that, since I have only few strings to put on LCD, all other are graphics. Anyway, thank you for answering.
Regards