Compare commits

...

1 Commits

Author SHA1 Message Date
Jörg Deckert 8d0e53f292 new function load1b to restore bitmap to framebuffer after deep sleep 2020-10-31 17:01:57 +01:00
2 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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);