exactly which pins do you have free?
did you look at the ks108.bas sample?
'First we define that we use a graphic LCD
Config Graphlcd = 128 * 64sed , Dataport = Porta , Controlport = Portc , Ce = 0 , Ce2 = 1 , Cd = 4 , Rd = 3 , Reset = 2 , Enable = 5
as you can you need 6 pins. if you have 5 that configure these. the reset, you can ignore.
then create some new constants :
const _glcd_resetX = yourpin number
const _glcd_portmX=portX ; your port number
then edit the glcdks108.lib (copy to a new file and edit it with notepad)
replace all _glcd_reset with _glcd_resetX and on that line the _glcd_portm into _glcd_portmX
So : * Cbi _glcd_portm , _glcd_reset ; Reset
become :
* Cbi _glcd_portmX , _glcd_resetX ; Reset
then save and use $lib to include the new file.
↧