Code: Select all
Serial.println(esp_deep_sleep_enable_ext0_wakeup((gpio_num_t)RTC_IN, 0)); // 1 = active high, 0 = active low.
My code compiles, though I haven't tried to run it yet. Why is the configuration instruction supposed to be placed inside a Serial.println() statement? Especially since the command to go to sleep is not placed in a Serial.println(), as expected:
Code: Select all
esp_deep_sleep_start();
Code: Select all
esp_deep_sleep_enable_ext0_wakeup((gpio_num_t)RTC_IN, 0); // 1 = active high, 0 = active low.
Also, which pins can be used to trigger the wake-up? Thanks for any tips?