Page 28 • BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333
BASIC Stamp II
BUTTON
Debounce button, auto-repeat, and branch if button is in target state.
usage:
BUTTON pin,downstate,delay,rate,bytevariable,targetstate,label
Pin
will be placed in input mode.
Downstate
is the state which is read when the button is pressed.
Delay
specifies down-time before auto-repeat in BUTTON cycles.
Rate
specifies the auto-repeat rate in BUTTON cycles.
Bytevariable
is workspace for the BUTTON instruction. It must be cleared
to 0 before being used by BUTTON for the first time.
Targetstate
specifies what state (0=not pressed, 1=pressed) the button
should be in for a branch to occur.
Label
specifies where to go if the button is in the target state.
Please refer to the Stamp I manual for an in-depth description of the BUTTON
instruction.
Summary of Contents for BASIC Stamp II
Page 2: ...BLANK PAGE...