.Pressed R/O Property


Returns the current button state.


Enum (no_yes, byte)

Possible values:

0- NO: the button is not pressed;

1- YES: the button is pressed.

See Also:



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.