Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions esp32/doorsignEPD/doorsignEPD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ void loop() {
int SleepTime = iot.configuration.get("ImageWait").toInt();
esp_sleep_enable_timer_wakeup(FactorSeconds * (uint64_t)SleepTime);
}
/**
* Allow for external triggering of display refresh using GPIO 15 high.
*/
Serial.println("Setting GPIO 15 for external wakeup...");
esp_sleep_enable_ext0_wakeup(GPIO_NUM_15, 1); //1 = High, 0 = Low
Serial.println("Going to deep sleep now...");
Serial.flush();
esp_deep_sleep_start();
Expand Down