#include <Switch.h>
◆ Switch() [1/2]
| VLCB::Switch::Switch |
( |
byte | pin, |
|
|
byte | pressedState = LOW ) |
|
explicit |
◆ Switch() [2/2]
a class to encapsulate a physical pushbutton switch, with non-blocking processing
◆ setPin()
| void VLCB::Switch::setPin |
( |
byte | pin, |
|
|
byte | mode ) |
◆ run()
| void VLCB::Switch::run |
( |
| ) |
|
◆ reset()
| void VLCB::Switch::reset |
( |
| ) |
|
◆ stateChanged()
| bool VLCB::Switch::stateChanged |
( |
| ) |
|
◆ getState()
| bool VLCB::Switch::getState |
( |
| ) |
|
◆ isPressed()
| bool VLCB::Switch::isPressed |
( |
| ) |
|
◆ getCurrentStateDuration()
| unsigned long VLCB::Switch::getCurrentStateDuration |
( |
| ) |
|
◆ getLastStateDuration()
| unsigned long VLCB::Switch::getLastStateDuration |
( |
| ) |
|
◆ getLastStateChangeTime()
| unsigned long VLCB::Switch::getLastStateChangeTime |
( |
| ) |
|
◆ resetCurrentDuration()
| void VLCB::Switch::resetCurrentDuration |
( |
| ) |
|
◆ readPin()
| byte VLCB::Switch::readPin |
( |
| ) |
|
|
protected |
◆ _pin
◆ _pressedState
| byte VLCB::Switch::_pressedState |
|
protected |
◆ _currentState
| byte VLCB::Switch::_currentState |
|
protected |
◆ _lastState
| byte VLCB::Switch::_lastState |
|
protected |
◆ _stateChanged
| byte VLCB::Switch::_stateChanged |
|
protected |
◆ _lastStateChangeTime
| unsigned long VLCB::Switch::_lastStateChangeTime |
|
protected |
◆ _lastStateDuration
| unsigned long VLCB::Switch::_lastStateDuration |
|
protected |
◆ _prevReleaseTime
| unsigned long VLCB::Switch::_prevReleaseTime |
|
protected |
◆ _prevStateDuration
| unsigned long VLCB::Switch::_prevStateDuration |
|
protected |
The documentation for this class was generated from the following files: