Hi. Please help me with AXE033 LCD module. I am testing my new AXE033 LCD board with RTC and I've stuck with simple task.
I am using PICAXE 28X1 and AXE033 LCD module connected via serial port. I am trying to display some text and variable, so everything works if variable does not exceeds 9. When it's value above 9 it's displayed with errors and weird symbols And it's fine on simulator
Please look at my code:
I tried with two gaps after variable and without it, but result is always the same. My later task is to show temperature on this screen, but I am afraid the value will be higher than one digit and it won't work. What is wrong here?
Thank you.
I am using PICAXE 28X1 and AXE033 LCD module connected via serial port. I am trying to display some text and variable, so everything works if variable does not exceeds 9. When it's value above 9 it's displayed with errors and weird symbols And it's fine on simulator
Please look at my code:
Code:
Setfreq m2
symbol counter = b0
pause 5000 'wait for reconect programming lead with LCD lead
main:
inc counter
if counter > 21 then
counter = 0
endif
sertxd (254,1) 'clear display
pause 30 'this goes always after "clear display" command
sertxd (254,128) 'move to beginning of the first line
sertxd ("Counter: ", #counter," ")
pause 500
goto main
Thank you.