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/Advanced/DeepSleep/Inkplate6COLOR_Simple_Deep_Sleep/Inkplate6COLOR_Simple_Deep_Sleep.ino
+10-29Lines changed: 10 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -39,33 +39,26 @@ Inkplate display; // Create an object on Inkplate library and also set library i
39
39
40
40
voidsetup()
41
41
{
42
-
pinMode(25, OUTPUT);
43
-
44
-
Serial.begin(115200);
45
-
Serial.println("about to enter begin...");
46
-
47
-
48
-
delay(1000);
49
-
50
42
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
51
-
52
-
delay(1000);
53
-
43
+
display.clearDisplay(); // Clear frame buffer of display
44
+
display.drawImage(
45
+
pictures[slide], 0, 0, 600,
46
+
448); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 600x448 pixels
47
+
display.display(); // Refresh the screen with new picture
48
+
slide++; // Update counter for pictures. With this variable, we choose what picture is going to be displayed on
49
+
// screen
50
+
if (slide > 2)
51
+
slide = 0; // We do not have more than 3 images, so roll back to zero
54
52
55
53
// Uncomment this line if your Inkplate is older than Aug 2021 as older Inkplates have ESP32 wrover-e chips
56
54
// rtc_gpio_isolate(GPIO_NUM_12); // Isolate/disable GPIO12 on ESP32 (only to reduce power consumption in sleep)
57
55
58
56
// Activate wake-up timer -- wake up after 20s here
0 commit comments