.Pressed R/O Property

Top  Previous  Next

Function:

Returns the current button state.

Type:

Enum (no_yes, byte)

Possible values:

0- NO: the button is not pressed;

1- YES: the button is pressed.

See Also:

---

 


Details

This property reflects the 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. These take debouncing into the account.