Specifications

BASIC Stamp I and Stamp II Conversions
Page 386 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
LABEL is a valid label to jump to in the event of a button press.
CONVERSION: BS1 R BS2
1.PIN may be a constant or a bit, nibble, byte or word variable in the
range 0..15.
2.Any or all arguments other than LABEL may be nibble variables
for efficiency.
Example:
BS1: BUTTON 0, 1, 255, 0, B0, 1, ButtonWasPressed
BS2: BUTTON 0, 1, 255, 0, WkspcByte, 1, ButtonWasPressed
CONVERSION: BS1 Q BS2
1.PIN must be a constant or a bit, byte or word variable in the range
0..7.
2.No arguments may be nibble variables.
Example:
BS2: BUTTON 12, 1, 255, 0, WkspcByte, 1, ButtonWasPressed
BS1: BUTTON 7, 1, 255, 0, B0, 1, ButtonWasPressed