|
arduino-audio-tools
|
Helper class to debounce user input from a push button. More...
#include <Debouncer.h>
Public Member Functions | |
| 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) |
Protected Attributes | |
| unsigned long | debounce_ms = 0 |
| uint16_t | ms |
| void * | p_ref = nullptr |
Helper class to debounce user input from a push button.
Prevents that the same method is executed multiple times within the indicated time limit.
|
protected |