EasyManuals Logo

Parallax BASIC Stamp II User Manual

Default Icon
68 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #28 background imageLoading...
Page #28 background image
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.

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Parallax BASIC Stamp II and is the answer not in the manual?

Parallax BASIC Stamp II Specifications

General IconGeneral
BrandParallax
ModelBASIC Stamp II
CategoryMicrocontrollers
LanguageEnglish