BASIC stamp manual v2.2

5: BASIC Stamp Command Reference – LCDIN
BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com Page 259
value VAR Byte(13)
LCDIN 0, 128, [value] 'receive the ASCII value for "V"
LCDIN 0, 128, [DEC value] 'receive the number 3.
LCDIN 0, 128, [HEX value] 'receive the number $3A.
LCDIN 0, 128, [BIN value] 'receive the number %101.
LCDIN 0, 128, [STR value\13] 'receive the string "Value: 3A:101"
Table 5.47 and Table 5.48 list all the special formatters and conversion
formatters available to the LCDIN command. See the SERIN command for
additional information and examples of their use.
Some possible uses of the LCDIN command are 1) in combination with the
LCDOUT command to store and read data from the unused DDRAM or
CGRAM locations (as extra variable space), 2) to verify that the data from
a previous LCDOUT command was received and processed properly by
the LCD, and 3) to read character data from CGRAM for the purposes of
modifying it and storing it as a custom character.
Table 5.47: LCDIN Special
Formatters.
Special Formatter Action
SPSTR L
Input a character string of length L bytes (up to 126) into Scratch
Pad RAM, starting at location 0. Use GET to retrieve the
characters.
STR ByteArray \L {\E}
Input a character string of length L into an array. If specified, an
end character E causes the string input to end before reaching
length L. Remaining bytes are filled with 0s (zeros).
WAIT (Value)
Wait for a sequence of bytes specified by value. Value can be
numbers separated by commas or quoted text (ex: 65, 66, 67 or
“ABC”). The WAIT formatter is limited to a maximum of six
characters.
WAITSTR ByteArray {\L}
Wait for a sequence of bytes matching a string stored in an array
variable, optionally limited to L characters. If the optional L
argument is left off, the end of the array-string must be marked
by a byte containing a zero (0).
SKIP Length Ignore Length bytes of characters.