Helper class to debounce user input from a push button.
More...
#include <Debouncer.h>
|
| | Debouncer (uint16_t timeoutMs=5000, void *ref=nullptr) |
| |
| bool | debounce (void(*cb)(void *ref)=nullptr) |
| | Prevents that the same method is executed multiple times within the indicated time limit.
|
| |
| void | setDebounceTimeout (uint16_t timeoutMs) |
| |
Helper class to debounce user input from a push button.
◆ Debouncer()
| Debouncer |
( |
uint16_t |
timeoutMs = 5000, |
|
|
void * |
ref = nullptr |
|
) |
| |
|
inline |
◆ debounce()
| bool debounce |
( |
void(*)(void *ref) |
cb = nullptr | ) |
|
|
inline |
Prevents that the same method is executed multiple times within the indicated time limit.
◆ setDebounceTimeout()
| void setDebounceTimeout |
( |
uint16_t |
timeoutMs | ) |
|
|
inline |
◆ debounce_ms
| unsigned long debounce_ms = 0 |
|
protected |
◆ ms
◆ p_ref
The documentation for this class was generated from the following file: