new function load1b to restore bitmap to framebuffer after deep sleep
This commit is contained in:
parent
679141a321
commit
8d0e53f292
11
Inkplate.cpp
11
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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue