You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Image_Frame_From_SD/Inkplate6COLOR_Image_Frame_From_SD.ino
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,14 @@ void loop()
105
105
display.printf("Error opening folder! Make sure \nthat you have entered the proper \nname and add / to the end "
106
106
"of the \npath");
107
107
display.display();
108
-
deepSleep();
108
+
// Turn off the power supply for the SD card
109
+
display.sdCardSleep();
110
+
111
+
// Enable wakeup from deep sleep on GPIO 36 (wake button)
112
+
esp_sleep_enable_ext0_wakeup(GPIO_NUM_36, LOW);
113
+
114
+
// Put ESP32 into deep sleep (low power mode)
115
+
esp_deep_sleep_start();
109
116
}
110
117
111
118
// If the index is equal to 0, it is the end of the file so repeat the code in loop again
0 commit comments