.Pressed R/O Property

Top  Previous  Next

Function:

Returns the current button state.

Type:

Enum (no_yes, byte)

Value Range:

0- NO: the button is not pressed.

1- YES: the button is pressed.

See Also:

---

 


Details

This property reflects an immediate state of the hardware at the very moment the property is read -- no "debouncing" performed. This is different from the on_button_pressed and on_button_released events, as well as the button.time R/O property, which all take debouncing into the account.