9#define DEBUG_SERIAL Serial
22 explicit Switch(
byte pin,
byte pressedState = LOW);
24 void setPin(
byte pin,
byte mode);
bool stateChanged()
Definition Switch.cpp:105
unsigned long _lastStateChangeTime
Definition Switch.h:42
unsigned long getCurrentStateDuration()
Definition Switch.cpp:126
void setPin(byte pin, byte mode)
Definition Switch.cpp:31
unsigned long _lastStateDuration
Definition Switch.h:43
Switch()
a class to encapsulate a physical pushbutton switch, with non-blocking processing
Definition Switch.cpp:15
void run()
Definition Switch.cpp:60
byte _pressedState
Definition Switch.h:38
void resetCurrentDuration()
Definition Switch.cpp:147
bool isPressed()
Definition Switch.cpp:119
byte _lastState
Definition Switch.h:40
bool getState()
Definition Switch.cpp:112
Switch(byte pin, byte pressedState=LOW)
Definition Switch.cpp:19
byte _stateChanged
Definition Switch.h:41
unsigned long _prevStateDuration
Definition Switch.h:45
byte _pin
Definition Switch.h:37
unsigned long getLastStateDuration()
Definition Switch.cpp:133
byte _currentState
Definition Switch.h:39
unsigned long getLastStateChangeTime()
Definition Switch.cpp:140
byte readPin()
Definition Switch.cpp:55
unsigned long _prevReleaseTime
Definition Switch.h:44
void reset()
Definition Switch.cpp:45
Definition AbstractEventTeachingService.cpp:13