|
Swadge ESP32-S2
APIs to develop for the Magfest Swadge
|
Data Structures | |
| struct | timedEvt_t |
| A timestamped button event. More... | |
Macros | |
| #define | DEBOUNCE_HIST_LEN 5 |
| The number of samples kept in history to debounce buttons. | |
Functions | |
| void | initButtons (const gpio_num_t *pushButtons, uint8_t numPushButtons) |
| Initialize GPIO pushbuttons. | |
| void | deinitButtons (void) |
| Free memory used by the buttons. | |
| void | powerDownButtons (void) |
| Power down the GPIO pushbuttons. | |
| void | powerUpButtons (void) |
| Power up the GPIO pushbuttons. | |
| bool | checkButtonQueue (buttonEvt_t *evt) |
| Service the queue of button events that caused interrupts This only returns a single event, even if there are multiple in the queue This function may be called multiple times in a row to completely empty the queue. | |
| #define DEBOUNCE_HIST_LEN 5 |
The number of samples kept in history to debounce buttons.
| void initButtons | ( | const gpio_num_t * | pushButtons, |
| uint8_t | numPushButtons ) |
Initialize GPIO pushbuttons.
| pushButtons | A list of GPIOs with pushbuttons to initialize. The list should be in the same order as buttonBit_t, starting at PB_UP |
| numPushButtons | The number of pushbuttons to initialize |
| void deinitButtons | ( | void | ) |
Free memory used by the buttons.
| void powerDownButtons | ( | void | ) |
Power down the GPIO pushbuttons.
| void powerUpButtons | ( | void | ) |
Power up the GPIO pushbuttons.
| bool checkButtonQueue | ( | buttonEvt_t * | evt | ) |
Service the queue of button events that caused interrupts This only returns a single event, even if there are multiple in the queue This function may be called multiple times in a row to completely empty the queue.
| evt | If an event occurred, return it through this argument |