Specifications

Appendix C
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 385
C
BUTTON
BASIC STAMP I
BUTTON pin, downstate, delay, rate, workspace, targetstate, label
PIN is a constant or a bit, byte or word variable in the range 0..7.
• DOWNSTATE is a constant or a bit, byte or word variable in the
range 0..1.
• DELAY is a constant or a bit, byte or word variable in the range
0..255.
RATE is a constant or a bit, byte or word variable in the range
0..255.
WORKSPACE is a byte or word variable.
TARGETSTATE is a constant or a bit, byte or word variable in the
range 0..1.
LABEL is a valid label to jump to in the event of a button press.
BASIC STAMP II
BUTTON pin, downstate, delay, rate, workspace, targetstate, label
PIN is a constant, expression or a bit, nibble, byte or word variable
in the range 0..15.
DOWNSTATE is a constant, expression or a bit, nibble, byte or word
variable in the range 0..1.
DELAY is a constant, expression or a bit, nibble, byte or word vari-
able in the range 0..255.
RATE is a constant, expression or a bit, nibble, byte or word vari-
able in the range 0..255.
WORKSPACE is a byte or word variable.
TARGETSTATE is a constant, expression or a bit, nibble, byte or
word variable in the range 0..1.