Store the button status and characteristics.
More...
#include <button.h>
|
|
void | reset () |
| | Reset this object.
|
| |
|
|
bool | isPressed = false |
| | Is the button pressed?
|
| |
|
bool | isLongPressed = false |
| | Is button in long press?
|
| |
|
uint32_t | lastPressTime = 0 |
| | Timestamp (millis) of last press.
|
| |
|
uint32_t | firstHoldTime = 0 |
| | Timestamp (millis) of first press (hold)
|
| |
|
uint8_t | nbClicksCounted = 0 |
| | Nb of counted clicks.
|
| |
|
bool | wasTriggered = false |
| | Was a button action detected.
|
| |
Store the button status and characteristics.
The documentation for this struct was generated from the following file: