new function load1b to restore bitmap to framebuffer after deep sleep

This commit is contained in:
Jörg Deckert 2020-10-25 11:07:49 +01:00
parent 75e37670a3
commit 3c4bde3d3d
2 changed files with 7 additions and 0 deletions

View File

@ -365,6 +365,12 @@ void Inkplate::display3b()
einkOff();
}
//Load old bitmap to RAM (after deep sleep)
void Inkplate::load1b() {
memcpy(DMemoryNew, _partial, 60000);
_blockPartial = 0;
}
void Inkplate::partialUpdate()
{
if (getDisplayMode() == 1)

View File

@ -41,6 +41,7 @@ class Inkplate : public System, public Graphics
void clearDisplay();
void display();
void load1b();
void partialUpdate();
void clean();