|
Swadge ESP32-S2/S3
APIs to develop for the Magfest Swadge
|
Functions | |
| void | rtc_sleep_enable_ultra_low (bool) |
| esp_err_t | initSleepSwitch (gpio_num_t gpio) |
| Initialize a GPIO as an RTC GPIO which monitors the sleep switch. | |
| bool | sleepSwitchShouldSleep (void) |
| Check if the sleep switch should put the Swadge to sleep. This function does not call esp_deep_sleep_start(). That must be done by the caller after de-initializing the Swadge mode, hardware peripherals, etc. | |
|
extern |
| esp_err_t initSleepSwitch | ( | gpio_num_t | gpio | ) |
Initialize a GPIO as an RTC GPIO which monitors the sleep switch.
| gpio | The GPIO connected to the sleep switch. Must ben an RTC GPIO (GPIO_NUM_0 through GPIO_NUM_21 on ESP32-S3) |
| bool sleepSwitchShouldSleep | ( | void | ) |
Check if the sleep switch should put the Swadge to sleep. This function does not call esp_deep_sleep_start(). That must be done by the caller after de-initializing the Swadge mode, hardware peripherals, etc.