Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lampda::physical::button::ButtonStateTy Struct Reference

Store the button status and characteristics. More...

#include <button.h>

Public Member Functions

void reset ()
 Reset this object.
 

Public Attributes

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.
 

Detailed Description

Store the button status and characteristics.


The documentation for this struct was generated from the following file: