|
TM1638_plus 2.2.0
Arduino library for Tm1638 modules
|
TM1638plus Model 1 button debouncing. More...
#include <TM1638plus.h>Classes | |
| struct | ButtonState |
Macros | |
| #define | STROBE_TM 4 |
| #define | CLOCK_TM 6 |
| #define | DIO_TM 7 |
Functions | |
| void | setup () |
| void | loop () |
| void | updateButtons () |
| void | buttonPressed (uint8_t id) |
| void | buttonLongPress (uint8_t id) |
| void | buttonReleased (uint8_t id) |
| void | checkCombos () |
Variables | |
| TM1638plus | tm (STROBE_TM, CLOCK_TM, DIO_TM, false) |
| constexpr uint8_t | NUM_BUTTONS = 8 |
| constexpr unsigned long | DEBOUNCE_MS = 50 |
| constexpr unsigned long | LONG_PRESS_MS = 800 |
| ButtonState | buttons [NUM_BUTTONS] |
TM1638plus Model 1 button debouncing.
Short, long and release detection. Combo detection on buttons 0 + 1 only(more can be added)