For example, how about the following example that sleeps if the input is LOW?
if(INPUTPIN == LOW) {
esp_deep_sleep_start();
}
For example, how about the following example that sleeps if the input is LOW?
if(INPUTPIN == LOW) {
esp_deep_sleep_start();
}