TM1638plus Model 1 button debouncing.
More...
|
#define | STROBE_TM 4 |
|
#define | CLOCK_TM 6 |
|
#define | DIO_TM 7 |
|
|
void | setup () |
|
void | loop () |
|
void | updateButtons () |
|
void | buttonPressed (uint8_t id) |
|
void | buttonLongPress (uint8_t id) |
|
void | buttonReleased (uint8_t id) |
|
void | checkCombos () |
|
|
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.
- Author
- Gavin Lyons