Button
Smart HomeThe house’s push button.
How you reach it
Section titled “How you reach it”The Button class is reached through this attribute of home.
home.button
Section titled “home.button”Always there.
All the attributes of home are in its table.
Methods
Section titled “Methods”is_pressed(debounce_ms)
Section titled “is_pressed(debounce_ms)”True while the button is pressed (a change is checked again after debounce_ms milliseconds).
is_pressed(debounce_ms: int) -> boolYou can leave out debounce_ms.
Used in examples: Doorbell