|
Simone: a game of visual memory and speed
|
Structure of the Button FSM. More...
#include <fsm_button.h>
Data Fields | |
| fsm_t | f |
| uint32_t | debounce_time_ms |
| uint32_t | next_timeout |
| uint32_t | tick_pressed |
| uint32_t | duration |
| uint8_t | button_id |
Structure of the Button FSM.
| uint8_t fsm_button_t::button_id |
Button ID. Must be unique.
| uint32_t fsm_button_t::debounce_time_ms |
Button debounce time in ms
| uint32_t fsm_button_t::duration |
How much time the button has been pressed
| fsm_t fsm_button_t::f |
Button FSM
| uint32_t fsm_button_t::next_timeout |
Next timeout for the anti-debounce in ms
| uint32_t fsm_button_t::tick_pressed |
Number of ticks when the button was pressed