Shop OBEX P1 Docs P2 Docs Learn Events
help displaying name on lcd with tanderd rfid code — Parallax Forums

help displaying name on lcd with tanderd rfid code

sfeinesfeine Posts: 1
edited 2008-07-27 03:07 in BASIC Stamp
Hi I am haveing troble displaying the name associated withe an rfid tag on an lcd screen.
I know that the name shows up in DEBUG but no matter how much I try modifying the example script I always recive multipal syntax erors.
please help,

Show_Name:
DEBUG DEC tagNum, ": "
LOOKUP tagNum,
[noparse][[/noparse]Name0, Name1, Name2, Name3], idx
DO
READ idx, char
IF (char = 0) THEN EXIT
DEBUG char
idx = idx + 1
LOOP
RETURN


The result of the tag search (in the variable tagNum) will be from one to the number of known
tags if the tag string is valid – if not, the search will result in zero. The Show_Name routine
uses the result of the tag search to LOOKUP the first character of the corresponding name.
After that, each character is printed in a loop until the zero terminator is encountered. We
could very easily change the DEBUG line to SEROUT for a serial LCD, or to LCDOUT if

we're using a BS2p or BS2pe and have a parallel LCD connected as required.··· (HOW?????????)



Thanks

-Sam

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-07-27 03:07
    Look up LCDOUT in the reference manual and it should give you help with this.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
Sign In or Register to comment.