new function load1b to restore bitmap to framebuffer after deep sleep

This commit is contained in:
Jörg Deckert 2020-10-31 17:01:57 +01:00
parent 679141a321
commit 8d0e53f292
2 changed files with 12 additions and 0 deletions

View File

@ -191,6 +191,17 @@ void Inkplate::display()
display3b(); 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() void Inkplate::partialUpdate()
{ {
if (_displayMode == 1) if (_displayMode == 1)

View File

@ -192,6 +192,7 @@ public:
void drawPixel(int16_t x0, int16_t y0, uint16_t color); void drawPixel(int16_t x0, int16_t y0, uint16_t color);
void clearDisplay(); void clearDisplay();
void display(); void display();
void load1b();
void partialUpdate(); void partialUpdate();
void drawBitmap3Bit(int16_t _x, int16_t _y, const unsigned char *_p, int16_t _w, int16_t _h); void drawBitmap3Bit(int16_t _x, int16_t _y, const unsigned char *_p, int16_t _w, int16_t _h);
void setRotation(uint8_t); void setRotation(uint8_t);