gLCD help

elios

Senior Member
okay... i got the GLCD this morning, and was having a play. when it stopped working,

I managed to get text, and then when trying to get a line based on a variable it stopped. All i can do now is get a boarder and the backlight, based on the serial commands. I havent tried anything since. Here is the code:

init:
pause 1500
Serout 1 , T2400 , ( 10) : Pause 300
Serout 1 , T2400 , (20 , 1)
pause 32
loopa:

serout 1,T2400, (100,1,5,"Hello PICAXE") ' PRINT AT (Format 100,X,Y,n,n)
pause 250
debug
goto loopa
 

lanternfish

Senior Member
Have just read pg. 7 of the datasheet for this. The format for the PRINT AT command is:

Serout <Pin> , T2400 , (100, X , Y , I,&#8221;My text up to 20 chars&#8221;)

You do not seem to have a value for I.

As this chip discards any invalid commands (pg.4 hints at this), it may be disregarding the command you send due to no value for I

A bit of a guess on my part as I don't have this module to work with.

Cheers
 

kevrus

New Member
As Lanternfish said, you are missing an instruction.

Code:
serout 1,T2400, (100,1,5,"Hello PICAXE")
needs to be

Code:
 serout 1,T2400, (100,1,5,1,"Hello PICAXE")
or

Code:
serout 1,T2400, (100,1,5,0,"Hello PICAXE")
depending on if you want the characters to be 'positive' or 'negative'.
Try both to see the difference
 
Top