PLEASE HELP...read write issues
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
Re: PLEASE HELP...read write issues
Re: PLEASE HELP...read write issues
Your array is [4] bytes, but you read your array in 0-4, which goes up to 5 bytes. So you either should change your array to 5, or just read 0-3.
Re: PLEASE HELP...read write issues
If you think the LCD is the problem....Have you tried "hello world" to the LCD? Try something very simple first.
Re: PLEASE HELP...read write issues
Quote:
Originally Posted by
ronsimpson
If you think the LCD is the problem....Have you tried "hello world" to the LCD? Try something very simple first.
Yeah, . . . I was kind of wondering if it was displaying his other text too.
Re: PLEASE HELP...read write issues
I get everything else when having text show up on LCD...LCD not the problem