theschoolmaster
New member
Hi. I am having great difficulty getting the Graphic LCD GLIC-K1 to work.
I have written some basic test code, and to keep matters simple am using delays instead of using the Status signal.
I have confirmed that the GLICD is connected correctly:
+5v, 0V, SIN to PICAXE output B.7
I have an LED on the PRX signal (B.7) which confirms data is being transmitted. But the LCD refuses to do anything! What am I doing wrong?
All/any help very gratefully appreciated!
CODE:
-----
symbol prx=7
okay:
gosub initLCD
pause 1000
gosub prepLCD
pause 1000
gosub xclearLCD
pause 1000
goto okay
;.............................................................
initLCD:
gosub xclearLCD 'clear the screen
serout prx,T2400,(20,1) 'Switch backlight ON
pause 500
return
prepLCD:
gosub showLYNCH ;Display LYNCH graphic briefly
pause 500
return
showLYNCH:
serout prx,T2400,(100,4,3,0,"LYNCH logo here")
pause 2000
return
xclearLCD:
serout prx,T2400,(10) ; Clear LCD
pause 500
return
I have written some basic test code, and to keep matters simple am using delays instead of using the Status signal.
I have confirmed that the GLICD is connected correctly:
+5v, 0V, SIN to PICAXE output B.7
I have an LED on the PRX signal (B.7) which confirms data is being transmitted. But the LCD refuses to do anything! What am I doing wrong?
All/any help very gratefully appreciated!
CODE:
-----
symbol prx=7
okay:
gosub initLCD
pause 1000
gosub prepLCD
pause 1000
gosub xclearLCD
pause 1000
goto okay
;.............................................................
initLCD:
gosub xclearLCD 'clear the screen
serout prx,T2400,(20,1) 'Switch backlight ON
pause 500
return
prepLCD:
gosub showLYNCH ;Display LYNCH graphic briefly
pause 500
return
showLYNCH:
serout prx,T2400,(100,4,3,0,"LYNCH logo here")
pause 2000
return
xclearLCD:
serout prx,T2400,(10) ; Clear LCD
pause 500
return