Skip to main content

Buttons

Button blocks let you add a debounced button to your project and react to its current or recent state.

Add button

Attach a physical button to a digital pin before using the other button blocks.

Button was pressed

Returns true once when the selected button is pressed.

Button is pressed

Returns whether the selected button is currently being held down.