Log in

View Full Version : PLEASE HELP...read write issues



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

Archangel
- 15th March 2011, 15:19
Might be something here:http://www.picbasic.co.uk/forum/showthread.php?t=8876

ScaleRobotics
- 15th March 2011, 15:22
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.

ronsimpson
- 15th March 2011, 15:46
If you think the LCD is the problem....Have you tried "hello world" to the LCD? Try something very simple first.

Archangel
- 15th March 2011, 15:53
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.

nomad77
- 17th March 2011, 14:39
I get everything else when having text show up on LCD...LCD not the problem