Swadge ESP32-S2/S3
APIs to develop for the Magfest Swadge
Toggle main menu visibility
Loading...
Searching...
No Matches
hdw-sleep-switch.h
Go to the documentation of this file.
1
41
42
#pragma once
43
44
#include <driver/gpio.h>
45
#include <esp_err.h>
46
47
esp_err_t
initSleepSwitch
(gpio_num_t gpio);
48
bool
sleepSwitchShouldSleep
(
void
);
initSleepSwitch
esp_err_t initSleepSwitch(gpio_num_t gpio)
Initialize a GPIO as an RTC GPIO which monitors the sleep switch.
Definition
hdw-sleep-switch.c:16
sleepSwitchShouldSleep
bool sleepSwitchShouldSleep(void)
Check if the sleep switch should put the Swadge to sleep. This function does not call esp_deep_sleep_...
Definition
hdw-sleep-switch.c:50
components
hdw-sleep-switch
include
hdw-sleep-switch.h
Generated by
1.17.0