Shop OBEX P1 Docs P2 Docs Learn Events
LEDARRAY.BS2 Program question — Parallax Forums

LEDARRAY.BS2 Program question

ArchiverArchiver Posts: 46,084
edited 2002-03-03 20:39 in General Discussion
The code to "Crawl Characters" works very nicely at reading and
displaying the letters "BS2" in the order of their place in EEPROM.

Code snippet from Jon Williams program LEDARRAY.BS2

Crawl_Characters: ' crawl on (horizontally)
FOR eeAddr1 = Char_Space TO Pad
GOSUB ShowChar
PAUSE 250
NEXT

The code to "Flash Characters" works very nicely at reading and
displaying letters in or out of the order of their place in EEPROM,
by changing the letters order in the LOOKUP command.

Code snippet from Jon Williams program LEDARRAY.BS2

Flash_Characters: ' on screen, one at a time
FOR char = 0 TO 3
LOOKUP char,[noparse][[/noparse]Char_B,Char_S,Char_2,Char_Space],eeAddr1
GOSUB ShowChar
PAUSE 1000
NEXT

My question is:
How can I "Crawl" the Letters OUT of order?

Could you give me an example of how to "horizontally scroll" the
letters "SB2"

I am using a BS2E, so SPRAM is available if necessary.

Thank you in advance for your reply,
Michael
Sign In or Register to comment.