Skip to content

Commit 222b5b5

Browse files
committed
Changed how deep sleep works on SPI IP boards
1 parent 833e502 commit 222b5b5

File tree

50 files changed

+270
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+270
-385
lines changed

examples/Inkplate2/Advanced/DeepSleep/Inkplate2_RTC_Alarm_With_Deep_Sleep/Inkplate2_RTC_Alarm_With_Deep_Sleep.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ void loop()
159159

160160
void deepSleep()
161161
{
162-
// Put the panel into deep sleep
163-
display.setPanelDeepSleep(true);
164-
165162
// Start deep sleep (this function does not return). Program stops here.
166163
esp_deep_sleep_start();
167164
}

examples/Inkplate2/Advanced/DeepSleep/Inkplate2_Simple_Deep_Sleep/Inkplate2_Simple_Deep_Sleep.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void setup()
5353
// rtc_gpio_isolate(GPIO_NUM_12); // Isolate/disable GPIO12 on ESP32 (only to reduce power consumption in sleep)
5454
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR); // Activate wake-up timer -- wake up after 20s here
5555

56-
display.setPanelDeepSleep(true); // Put the panel into deep sleep
56+
5757
esp_deep_sleep_start(); // Put ESP32 into deep sleep. Program stops here.
5858
}
5959

examples/Inkplate2/Advanced/Other/Inkplate2_Picture_From_RAM/Inkplate2_Picture_From_RAM.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ Inkplate display; // Create display object
3333

3434
void setup()
3535
{
36+
Serial.begin(115200);
37+
Serial.print("Sketch begun!");
38+
39+
3640
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
3741
display.clearDisplay(); // Clear frame buffer of display
3842
display.drawImage(picture1, 0, 0, 212,
@@ -50,9 +54,6 @@ void setup()
5054
display.drawImage(picture3, 0, 0, 212, 104); // Display selected picture at location X=0, Y=0.
5155
display.display(); // Refresh the screen with new picture
5256

53-
// Put the panel to deep sleep
54-
display.setPanelDeepSleep(true);
55-
5657
// Put ESP32 into deep sleep. Program stops here
5758
esp_deep_sleep_start();
5859
}

examples/Inkplate2/Advanced/RTC/Inkplate2_RTC_Alarm_Periodic/Inkplate2_RTC_Alarm_Periodic.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ void setup()
9292

9393
rtc.setWakeUpTimer(wakeHours, wakeMinutes, currentTime);
9494

95-
// Put the panel in deep sleep
96-
display.setPanelDeepSleep(true);
97-
9895
// Start sleep, this function never returns, program stops here
9996
esp_deep_sleep_start();
10097
}

examples/Inkplate2/Advanced/WEB_WiFi/Inkplate2_Show_Pictures_From_Web/Inkplate2_Show_Pictures_From_Web.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ void setup()
144144

145145
// Go to deep sleep
146146
Serial.println("Going to sleep..");
147-
display.setPanelDeepSleep(true); // Put the panel to deep sleep
148147
esp_deep_sleep_start(); // Put ESP32 into deep sleep. Program stops here
149148
}
150149

examples/Inkplate2/Basic/Inkplate2_Text_With_Shadow/Inkplate2_Text_With_Shadow.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ void setup()
5656
display.display();
5757

5858
// Go to deep sleep
59-
display.setPanelDeepSleep(true); // 'true' will put panel into sleep mode, 'false' will wake it up
60-
esp_deep_sleep_start(); // This will put ESP32 into deep sleep mode
59+
esp_deep_sleep_start();
6160
}
6261

6362
void loop()

examples/Inkplate2/Diagnostics/Inkplate2_Factory_Programming/Inkplate2_Factory_Programming.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ void setup()
110110
display.display();
111111

112112
// Go to sleep
113-
display.setPanelDeepSleep(true);
114113
esp_deep_sleep_start();
115114
}
116115

examples/Inkplate2/Projects/Inkplate2_Clock/Inkplate2_Clock.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void setup()
8585
// Go to sleep before checking again
8686
// rtc_gpio_isolate(GPIO_NUM_12); // Isolate/disable GPIO12 on ESP32 (only to reduce power consumption in sleep)
8787
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR); // Activate wake-up timer
88-
display.setPanelDeepSleep(true); // Put the panel into deep sleep
88+
8989
esp_deep_sleep_start(); // Put ESP32 into deep sleep. Program stops here.
9090
}
9191

examples/Inkplate2/Projects/Inkplate2_Crypto_Currency_Tracker/Inkplate2_Crypto_Currency_Tracker.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void setup()
133133
// Go to sleep before checking again
134134
// rtc_gpio_isolate(GPIO_NUM_12); // Isolate/disable GPIO12 on ESP32 (only to reduce power consumption in sleep)
135135
esp_sleep_enable_timer_wakeup(1000ll * DELAY_MS); // Activate wake-up timer
136-
display.setPanelDeepSleep(true); // Put the panel into deep sleep
136+
137137
esp_deep_sleep_start(); // Put ESP32 into deep sleep. Program stops here
138138
}
139139

examples/Inkplate2/Projects/Inkplate2_Daily_Weather_Station/Inkplate2_Daily_Weather_Station.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void setup()
9393
// Go to deep sleep
9494
Serial.println("Going to deep sleep, bye");
9595
esp_sleep_enable_timer_wakeup(1000LL * WAKEUP); // Activate wake-up timer
96-
display.setPanelDeepSleep(true); // Put the panel into deep sleep
96+
9797
(void)esp_deep_sleep_start(); // Put ESP32 into deep sleep. Program stops here.
9898
}
9999

0 commit comments

Comments
 (0)