Skip to content

Commit f5b54ea

Browse files
committed
Fixed deep sleep partial
1 parent d3c4080 commit f5b54ea

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ void setup()
5353
.preloadScreen(); // If is woken up by deep sleep, recreate whole screen to be same as was before deep sleep
5454
counter++; // Update variable / variables
5555
decimal *= 1.23;
56-
display.clearDisplay(); // Clear everything in buffer
57-
createScreen(); // Create new screen with new variables
58-
display.partialUpdate(); // Partial update of screen. (Use this only in this
59-
// scenario, otherwise YOU CAN DAMAGE YOUR SCRREN)
56+
display.clearDisplay(); // Clear everything in buffer
57+
createScreen(); // Create new screen with new variables
58+
display.partialUpdate(true); // Partial update of screen. (Use this only in this
59+
// scenario, otherwise YOU CAN DAMAGE YOUR SCRREN)
6060
}
6161
else // If is not deep sleep reset, that must be some thing else, so use normal update procedure (full screen
6262
// update)

examples/Inkplate5/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ void setup()
5252
.preloadScreen(); // If is woken up by deep sleep, recreate whole screen to be same as was before deep sleep
5353
counter++; // Update variable / variables
5454
decimal *= 1.23;
55-
display.clearDisplay(); // Clear everything in buffer
56-
createScreen(); // Create new screen with new variables
57-
display.partialUpdate(); // Partial update of screen. (Use this only in this
58-
// scenario, otherwise YOU CAN DAMAGE YOUR SCRREN)
55+
display.clearDisplay(); // Clear everything in buffer
56+
createScreen(); // Create new screen with new variables
57+
display.partialUpdate(true); // Partial update of screen. (Use this only in this
58+
// scenario, otherwise YOU CAN DAMAGE YOUR SCRREN)
5959
}
6060
else // If is not deep sleep reset, that must be some thing else, so use normal update procerude (full screen
6161
// update)

examples/Inkplate6/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ void setup()
5252
.preloadScreen(); // If is woken up by deep sleep, recreate whole screen to be same as was before deep sleep
5353
counter++; // Update variable / variables
5454
decimal *= 1.23;
55-
display.clearDisplay(); // Clear everything in buffer
56-
createScreen(); // Create new screen with new variables
57-
display.partialUpdate(); // Partial update of screen. (Use this only in this
58-
// scenario, otherwise YOU CAN DAMAGE YOUR SCRREN)
55+
display.clearDisplay(); // Clear everything in buffer
56+
createScreen(); // Create new screen with new variables
57+
display.partialUpdate(true); // Partial update of screen. (Use this only in this
58+
// scenario, otherwise YOU CAN DAMAGE YOUR SCRREN)
5959
}
6060
else // If is not deep sleep reset, that must be some thing else, so use normal update procerude (full screen
6161
// update)

examples/Inkplate6PLUS/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ void setup()
5252
.preloadScreen(); // If is woken up by deep sleep, recreate whole screen to be same as was before deep sleep
5353
counter++; // Update variable / variables
5454
decimal *= 1.23;
55-
display.clearDisplay(); // Clear everything in buffer
56-
createScreen(); // Create new screen with new variables
57-
display.partialUpdate(); // Partial update of screen. (Use this only in this
58-
// scenario, otherwise YOU CAN DAMAGE YOUR SCRREN)
55+
display.clearDisplay(); // Clear everything in buffer
56+
createScreen(); // Create new screen with new variables
57+
display.partialUpdate(true); // Partial update of screen. (Use this only in this
58+
// scenario, otherwise YOU CAN DAMAGE YOUR SCRREN)
5959
}
6060
else // If is not deep sleep reset, that must be some thing else, so use normal update procerude (full screen
6161
// update)

0 commit comments

Comments
 (0)