Skip to content

Commit b2ca78c

Browse files
committed
Seems ok, ready for further testing before merge
1 parent e76e670 commit b2ca78c

File tree

15 files changed

+36
-21
lines changed

15 files changed

+36
-21
lines changed

examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_RTC_Alarm_With_Deep_Sleep/Inkplate6COLOR_RTC_Alarm_With_Deep_Sleep.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ void setup()
4848
// Enable wakup from deep sleep on gpio 39 where RTC interrupt is connected
4949
esp_sleep_enable_ext0_wakeup(GPIO_NUM_39, 0);
5050

51+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
52+
display.sleepColorPanel();
53+
5154
// Start deep sleep (this function does not return). Program stops here.
5255
esp_deep_sleep_start();
5356
}

examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Wake_Up_Button/Inkplate6COLOR_Wake_Up_Button.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ void setup()
4747
// Enable wakeup from deep sleep on gpio 36 (wake button)
4848
esp_sleep_enable_ext0_wakeup(GPIO_NUM_36, 0);
4949

50+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
51+
display.sleepColorPanel();
52+
5053
// Start deep sleep (this function does not return). Program stops here.
5154
esp_deep_sleep_start();
5255
}

examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Wake_Up_On_Touchpads/Inkplate6COLOR_Wake_Up_On_Touchpads.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ void setup()
5555
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
5656
esp_sleep_enable_ext0_wakeup(GPIO_NUM_34, LOW);
5757

58+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
59+
display.sleepColorPanel();
60+
5861
// Start deep sleep (this function does not return). Program stops here.
5962
esp_deep_sleep_start();
6063
}

examples/Inkplate6COLOR/Diagnostics/Inkplate6COLOR_Gallery/Inkplate6COLOR_Gallery.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,14 @@ void setup()
8080
// Go to sleep for DELAY_MS
8181
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
8282

83-
84-
8583
// Put SD card into deep sleep
8684
display.sdCardSleep();
8785

86+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
87+
display.sleepColorPanel();
88+
8889
// Start deep sleep (this function does not return). Program stops here.
89-
(void)esp_deep_sleep_start();
90+
esp_deep_sleep_start();
9091
}
9192

9293
void loop()

examples/Inkplate6COLOR/Diagnostics/Inkplate6COLOR_Mapbox_API/Inkplate6COLOR_Mapbox_API.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ void setup()
6161
// Go to sleep for DELAY_MS
6262
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
6363

64-
64+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
65+
display.sleepColorPanel();
6566

6667
// Start deep sleep (this function does not return). Program stops here.
6768
esp_deep_sleep_start();

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Crowdsupply_Campaing_Tracker/Inkplate6COLOR_Crowdsupply_Campaing_Tracker.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ void setup()
120120
// Go to sleep
121121
esp_sleep_enable_timer_wakeup(1000LL * DELAY_MS);
122122

123-
123+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
124+
display.sleepColorPanel();
124125

125126
// Start deep sleep (this function does not return). Program stops here.
126127
esp_deep_sleep_start();

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Crypto_Currency_Tracker/Inkplate6COLOR_Crypto_Currency_Tracker.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ void loop()
145145
// Go to sleep before checking again
146146
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
147147

148+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
149+
display.sleepColorPanel();
148150

149151
// Start deep sleep (this function does not return). Program stops here.
150152
esp_deep_sleep_start();

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Daily_Weather_Station/Inkplate6COLOR_Daily_Weather_Station.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ void setup()
140140
// Activate wakeup timer
141141
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
142142

143-
143+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
144+
display.sleepColorPanel();
144145

145146
// Start deep sleep (this function does not return). Program stops here.
146147
esp_deep_sleep_start();

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Google_Calendar/Inkplate6COLOR_Google_Calendar.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ void setup()
131131
// Go to sleep before checking again
132132
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
133133

134-
134+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
135+
display.sleepColorPanel();
135136

136137
// Start deep sleep (this function does not return). Program stops here.
137138
esp_deep_sleep_start();

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Hourly_Weather_Station/Inkplate6COLOR_Hourly_Weather_Station.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ void loop()
163163
// Activate wakeup timer
164164
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
165165

166-
166+
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
167+
display.sleepColorPanel();
167168

168169
// Start deep sleep (this function does not return). Program stops here.
169170
esp_deep_sleep_start();

0 commit comments

Comments
 (0)