Light-sleep and GPIOs on ESP32-S3
Posted: Thu Nov 28, 2024 9:28 am
I am a bit confused with the behavior of GPIO outputs with light sleep. I know that deep sleep deactivates GPIOs unless you configure them to maintain the value (e.g. with rtc_gpio_hold_en()). But I was not expecting light-sleep to also deactivate GPIO outputs.
My code calls esp_pm_configure() with light_sleep_enable set to true, and as soon as the device enters light sleep, the GPIO outputs that were set, go to 0. Is this normal? In case it is, how can I prevent it using esp-idf APIs?
My code calls esp_pm_configure() with light_sleep_enable set to true, and as soon as the device enters light sleep, the GPIO outputs that were set, go to 0. Is this normal? In case it is, how can I prevent it using esp-idf APIs?