EasyManua.ls Logo

Parallax BASIC Stamp II - Button

Default Icon
68 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.