|
TB2026-YDS Firmware
|
Debounce/edge state. Zero-initialise before the first call (memset or {0}). More...
#include <input_logic.h>
Data Fields | |
| uint8_t | prev |
| uint32_t | last_ms [INPUT_BTN_COUNT] |
| uint32_t | count [INPUT_BTN_COUNT] |
Debounce/edge state. Zero-initialise before the first call (memset or {0}).
| uint32_t input_debounce_t::count[INPUT_BTN_COUNT] |
Accepted (debounced) presses per button since reset.
| uint32_t input_debounce_t::last_ms[INPUT_BTN_COUNT] |
Timestamp of each button's last accepted press.
| uint8_t input_debounce_t::prev |
Pressed mask at the previous call (bit per button).