jodicalhon
New Member
I am storing some phrases in EEPROM on an 18A and, for the moment at least, sending them one after another to an LCD. (Part of a K9 model I'm building for my son.)
My coding is pretty clunky I think. Am I going about this in the right way?
EEPROM 6, ("Greetings, Master." '6 to 23
EEPROM 24, ("Scanning for lifeforms..." '24 to 49
....more phrases...
SendPhrase:
b1 = 6
b2 = 23
gosub SendData
b1 = 24
b2 = 49
gosub SendData
SendData:
FOR get = b1 TO b2
READ get,byte
GOSUB SendDataByte
NEXT
This is all very straightforward, and is working which is always a good start, but I'm sure there's a better way.
Any ideas?
Edited by - Jo C on 04/05/2007 14:42:12
My coding is pretty clunky I think. Am I going about this in the right way?
EEPROM 6, ("Greetings, Master." '6 to 23
EEPROM 24, ("Scanning for lifeforms..." '24 to 49
....more phrases...
SendPhrase:
b1 = 6
b2 = 23
gosub SendData
b1 = 24
b2 = 49
gosub SendData
SendData:
FOR get = b1 TO b2
READ get,byte
GOSUB SendDataByte
NEXT
This is all very straightforward, and is working which is always a good start, but I'm sure there's a better way.
Any ideas?
Edited by - Jo C on 04/05/2007 14:42:12