This is totally off the top of my head, no code:
Use an array with 1 element for each character on display.
- if 4 characters, then use 4 elements starting at 0.
Store the position of each character in the array.
- character 1 starts at 0 on startup, so array(0)=1.
Use a lookup table to display each character.
Lcdout (clear screen)
For element = 0 To 3 (if using 4 characters)
Lookup array(element),[0,1,2,3,4,5,6,7,8,9,A,B,C],byteout
Lcdout byteout at next position on display
Next element
-syntax must be corrected.
- never used lookup so not sure if it starts at 0 or 1.
- I remember concatenating characters on the same LCD line, somewhere.
Ok Art, now it's your turn.
Robert
Bookmarks