Skip to content

Commit c0d7cd0

Browse files
committed
Fixed multiple resets, fixed deep sleep current issue.
1 parent 037f6fe commit c0d7cd0

File tree

17 files changed

+26
-85
lines changed

17 files changed

+26
-85
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ 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-
5451
// Start deep sleep (this function does not return). Program stops here.
5552
esp_deep_sleep_start();
5653
}

examples/Inkplate6COLOR/Advanced/DeepSleep/Inkplate6COLOR_Simple_Deep_Sleep/Inkplate6COLOR_Simple_Deep_Sleep.ino

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,12 @@ Inkplate display; // Create an object on Inkplate library and also set library i
4040
void setup()
4141
{
4242
Serial.begin(115200);
43-
Serial.println("about to begin..."); Serial.flush();
4443
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
4544
display.clearDisplay(); // Clear frame buffer of display
4645
display.drawImage(
4746
pictures[slide], 0, 0, 600,
4847
448); // Display selected picture at location X=0, Y=0. All three pictures have resolution of 600x448 pixels
49-
Serial.println("displayin..."); Serial.flush();
5048
display.display(); // Refresh the screen with new picture
51-
Serial.println("done displayin..."); Serial.flush();
5249
slide++; // Update counter for pictures. With this variable, we choose what picture is going to be displayed on
5350
// screen
5451
if (slide > 2)
@@ -57,17 +54,10 @@ void setup()
5754
// Uncomment this line if your Inkplate is older than Aug 2021 as older Inkplates have ESP32 wrover-e chips
5855
// rtc_gpio_isolate(GPIO_NUM_12); // Isolate/disable GPIO12 on ESP32 (only to reduce power consumption in sleep)
5956

60-
Serial.println("about to sleep color panel..."); Serial.flush();
61-
display.sleepColorPanel();
6257
// Activate wake-up timer -- wake up after 20s here
6358
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
64-
Serial.println("starting sleep..."); Serial.flush();
65-
6659

6760
// Put ESP32 into deep sleep. Program stops here.
68-
delay(3000);
69-
Serial.println("just before deep sleep start aaa!");
70-
Serial.flush();
7161
esp_deep_sleep_start();
7262
}
7363

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ 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-
5350
// Start deep sleep (this function does not return). Program stops here.
5451
esp_deep_sleep_start();
5552
}

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ 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-
6158
// Start deep sleep (this function does not return). Program stops here.
6259
esp_deep_sleep_start();
6360
}

examples/Inkplate6COLOR/Diagnostics/Inkplate6COLOR_Gallery/Inkplate6COLOR_Gallery.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ void setup()
8383
// Put SD card into deep sleep
8484
display.sdCardSleep();
8585

86-
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
87-
display.sleepColorPanel();
88-
8986
// Start deep sleep (this function does not return). Program stops here.
9087
esp_deep_sleep_start();
9188
}

examples/Inkplate6COLOR/Diagnostics/Inkplate6COLOR_Mapbox_API/Inkplate6COLOR_Mapbox_API.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ void setup()
6161
// Go to sleep for DELAY_MS
6262
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
6363

64-
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
65-
display.sleepColorPanel();
66-
6764
// Start deep sleep (this function does not return). Program stops here.
6865
esp_deep_sleep_start();
6966
}

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Crowdsupply_Campaing_Tracker/Inkplate6COLOR_Crowdsupply_Campaing_Tracker.ino

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

120120
// Go to sleep
121121
esp_sleep_enable_timer_wakeup(1000LL * DELAY_MS);
122-
123-
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
124-
display.sleepColorPanel();
125122

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

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Crypto_Currency_Tracker/Inkplate6COLOR_Crypto_Currency_Tracker.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ 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();
150-
151148
// Start deep sleep (this function does not return). Program stops here.
152149
esp_deep_sleep_start();
153150
}

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Daily_Weather_Station/Inkplate6COLOR_Daily_Weather_Station.ino

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

140140
// Activate wakeup timer
141141
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
142-
143-
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
144-
display.sleepColorPanel();
145142

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

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_Google_Calendar/Inkplate6COLOR_Google_Calendar.ino

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

131131
// Go to sleep before checking again
132132
esp_sleep_enable_timer_wakeup(1000L * DELAY_MS);
133-
134-
// This function must additionaly be called on Inkplate 6COLOR to initiate sleep
135-
display.sleepColorPanel();
136133

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

0 commit comments

Comments
 (0)