BUTTON i [TO] IN n/BB n

Command:

BUTTON i [TO] IN n/BB n

Command Syntax:

CONNECT BUTTON i [TO] IN n/BB n

Range:

 

Describe:

Connect an external button to a digital input pin. The button task will monitor the state of the button allowing reporting for the button pressed, not pressed, and was pressed since last checked. The connected pin is set to a digital input state with its internal pullup enabled. The other side of the button is connected to a ground pin. Buttons share number space with Switches.

CONNECT BUTTON i [TO] IN1

Result:

Digital button/switch/etc.

Type or
Addressable Component:

Sensor