.pressed R/O Property
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 the immediate state of the hardware at the very moment the property is read — no "debouncing" is performed.
This is different from the on_button_pressed and on_button_released events, as well as the button.time read-only property, which take debouncing into account.