KS0108 library
Page last updated
05 Jan 2011, by
Dimiter K.
5
replies
GLCD,
KS0108
This program implements a library for a 128x64 display based on the KS0108 controller. The display I'm using is an ADM12864H-FSY-YBS/Z.
| 1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
| VDD |
VSS |
V0 |
DB0 |
DB1 |
DB2 |
DB3 |
DB4 |
DB5 |
DB6 |
DB7 |
CS1 |
CS2 |
RES |
RW |
DI |
E |
VEE |
A |
K |
In order for the display to work properly a trimpot has to be connected to V0, alternatively one can use a 2 K resistor between V0 and VEE.

Currently ,the library does not support bounds checking so any out of bounds condition from incorrect usage of graphic functions results in erratic behaviour.
KS0108-driver -demostrates the lib functions
KS0108
I've been messing around with a KS0108 display for the past couple days myself. I'd love to see your code at some point..
Still troubleshooting, probably will release it in two weeks once i clean it up a bit
Lemme know if you want any help.
You can also look at my LcdWindow library, which also contains a KS0108 driver (text only, with an 8x8 font). It doesn't allow usage of graphics, but allows the usage of sub-parts of the display (makes programming easier).
I finally got around to using your library. For the life of me I cant get this sequence to work:
display.SelectFont(Arial12,BLACK,ReadData);
display.GotoXY(0,1);
display.PrintString("Hello");
You need to log in to post a comment
I've been messing around with a KS0108 display for the past couple days myself. I'd love to see your code at some point..