Skip to content

Search the documentation

Kit
Firmware

Button

Smart Home

The house’s push button.

The Button class is reached through this attribute of home.

Always there.

All the attributes of home are in its table.

True while the button is pressed (a change is checked again after debounce_ms milliseconds).

is_pressed(debounce_ms: int) -> bool

You can leave out debounce_ms.

Used in examples: Doorbell