|
supla-device
|

Public Member Functions | |
| ButtonState (Supla::Io::IoPin inputPin) | |
| ButtonState (Supla::Io::Base *io, int pin, bool pullUp, bool invertLogic) | |
| ButtonState (int pin, bool pullUp, bool invertLogic) | |
| enum StateResults | update () |
| enum StateResults | getLastState () const |
| void | init (int buttonNumber) |
| void | setSwNoiseFilterDelay (unsigned int newDelayMs) |
| void | setDebounceDelay (unsigned int newDelayMs) |
| int | getGpio () const |
| bool | isReady () const |
Protected Member Functions | |
| int | valueOnPress () const |
Protected Attributes | |
| Supla::Io::IoPin | inputPin |
| uint16_t | debounceDelayMs = 50 |
| uint16_t | swNoiseFilterDelayMs = 20 |
| uint32_t | debounceTimestampMs = 0 |
| uint32_t | filterTimestampMs = 0 |
| int8_t | newStatusCandidate = 0 |
| int8_t | prevState = -1 |