diff --git a/Inkplate.cpp b/Inkplate.cpp index 3809939..de13162 100644 --- a/Inkplate.cpp +++ b/Inkplate.cpp @@ -191,6 +191,17 @@ void Inkplate::display() display3b(); } +//Load old bitmap to RAM (after deep sleep) +void Inkplate::load1b() +{ + for (int i = 0; i < 60000; i++) + { + *(D_memory_new + i) &= *(_partial + i); + *(D_memory_new + i) |= (*(_partial + i)); + } + _blockPartial = 0; +} + void Inkplate::partialUpdate() { if (_displayMode == 1) diff --git a/Inkplate.h b/Inkplate.h index 5c4e0f9..af86e17 100644 --- a/Inkplate.h +++ b/Inkplate.h @@ -192,6 +192,7 @@ public: void drawPixel(int16_t x0, int16_t y0, uint16_t color); void clearDisplay(); void display(); + void load1b(); void partialUpdate(); void drawBitmap3Bit(int16_t _x, int16_t _y, const unsigned char *_p, int16_t _w, int16_t _h); void setRotation(uint8_t);