help displaying name on lcd with tanderd rfid code
sfeine
Posts: 1
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
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
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen