Temphum2 v2.0.0 contains the following structs and functions:
SButtonDebounceFlags
SButtonState
SButtonActions
static void _configure_button(uint8_t u8Gpio);
static void _button_init();
static void _button_cycle(uint64_t u64tckNow);
static void _button_isr(void *pvParam);
These are slightly generic, thus they belong to esp32basic.
Note, _button_isr() captures (and clears) every GPIO interrupt, maybe it is not the best solution. Also, not sure how to deal with [GPIO-3.14].
Temphum2 v2.0.0 contains the following structs and functions:
SButtonDebounceFlagsSButtonStateSButtonActionsstatic void _configure_button(uint8_t u8Gpio);static void _button_init();static void _button_cycle(uint64_t u64tckNow);static void _button_isr(void *pvParam);These are slightly generic, thus they belong to
esp32basic.Note,
_button_isr()captures (and clears) every GPIO interrupt, maybe it is not the best solution. Also, not sure how to deal with [GPIO-3.14].