File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
examples/Inkplate2/Projects/Inkplate2_OpenAI_Text_Prompt Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -88,14 +88,10 @@ void setup() {
88
88
display.display ();
89
89
}
90
90
91
- // Set a wakeup alarm 30 seconds from now (RTC-based wakeup)
92
- display.rtcSetAlarmEpoch (display.rtcGetEpoch () + SLEEP_DURATION_IN_MINS, RTC_ALARM_MATCH_DHHMMSS);
91
+ esp_sleep_enable_timer_wakeup (SLEEP_DURATION_IN_MINS * uS_TO_S_FACTOR); // Activate wake-up timer -- wake up after 20s here
93
92
94
- // Configure ESP32 to wake up from deep sleep using RTC interrupt on GPIO 39
95
- esp_sleep_enable_ext0_wakeup (GPIO_NUM_39, 0 );
96
-
97
- // Enter deep sleep to save power
98
- esp_deep_sleep_start ();
93
+
94
+ esp_deep_sleep_start ();// Put ESP32 into deep sleep. Program stops here.
99
95
}
100
96
101
97
void loop () {
You can’t perform that action at this time.
0 commit comments