LCD Firnmware - syntax error

huttonart

New Member
I've just bought the PICAXE LCD firmaware chip and got it working with a non picaxe LCD. The data sheet that came with the PICAXE firmware suggests this code:
serout 7,T2400,(254,1)
pause 30
serout 7,T2400,(254,128,“Top Line”)
serout 7,T2400,(254,192,“Bottom Line”)
pause 2000
loop:
let b1 = b1 + 1
pause 500
serout 7,T2400,(254,192,“Count = ”, #b1)
goto loop

BUT when I try to run this code I get a Syntax error message for the loop line - the error is "Loop without Do"

Any suggestions of how to get this code correct and possibly altered in the datasheet?

cheers
 

Texy

Senior Member
Loop is a keyword - is it highlighted in blue, instead of black in the editor (assuming ehanced editor is enabled) ?

To fix simply change 'loop' to banana in the two places it is mentioned in the code. You don't have to use banana of course:D

Texy
 

huttonart

New Member
Many thanks Texy , I do feel a bit thick on that one. Now I'm past that line theres another syntax error in this line:

serout 4,T2400,(254,192,Count = ., #b1)
any thoughts?
 

Dippy

Moderator
Look in the Manual old chap. Serout outputs data not an implied string. have you tried quote marks?
 

BeanieBots

Moderator
Not sure if that's just a typo but the line you first posted was correct.
The line in your second post is missing the quotes around the text part.

serout 7,T2400,(254,192,“Count = ”, #b1)
 
Top