nomad77
- 15th March 2011, 14:36
I've been working on this code and im not getting any numbers but a blinking cursor. I want to display the decimal values that i've stored in the eeprom on my lcd screen. I can't figure out if it's the array that is throwing things off.
MC var byte[4]
Y var byte
X = 0
Data @0, 5, 4, 3, 2, 1 'stores values into EEPROM
pause 2000 'let lcd start up (2sec wait)
Loop:
lcdout $FE, 1, "Program is starting"
pause 3000
lcdout $FE, 1
lcdout $FE, $C0
for x = 0 to 4
read x, Mc[x]
lcdout $FE, dec1 MC[x]
pause 1000
next x
lcdout $FE, 1
lcdout $FE, "End of program"
pause 3000
lcdout $FE, 1
goto loop
MC var byte[4]
Y var byte
X = 0
Data @0, 5, 4, 3, 2, 1 'stores values into EEPROM
pause 2000 'let lcd start up (2sec wait)
Loop:
lcdout $FE, 1, "Program is starting"
pause 3000
lcdout $FE, 1
lcdout $FE, $C0
for x = 0 to 4
read x, Mc[x]
lcdout $FE, dec1 MC[x]
pause 1000
next x
lcdout $FE, 1
lcdout $FE, "End of program"
pause 3000
lcdout $FE, 1
goto loop