Skip to content

Commit c3c3234

Browse files
authored
Merge pull request #75 from e-radionicacom/dev
Dev
2 parents 2676614 + 64bd4e4 commit c3c3234

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

src/boards/Inkplate10.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ void Inkplate::display1b()
235235
clean(3, 1);
236236
vscan_start();
237237
einkOff();
238+
_blockPartial = 0;
238239
}
239240

240241
/**

src/boards/Inkplate5.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ void Inkplate::display1b()
266266
clean(3, 1);
267267
vscan_start();
268268
einkOff();
269+
_blockPartial = 0;
270+
269271
}
270272

271273
/**
@@ -330,6 +332,11 @@ void Inkplate::partialUpdate(bool _forced)
330332
if (getDisplayMode() == 1)
331333
return;
332334

335+
if (_blockPartial == 1 && !_forced)
336+
{
337+
display1b();
338+
return;
339+
}
333340
uint32_t _pos = (E_INK_WIDTH * E_INK_HEIGHT / 8) - 1;
334341
uint8_t data;
335342
uint8_t diffw, diffb;

src/boards/Inkplate6.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ void Inkplate::display1b()
282282

283283
vscan_start();
284284
einkOff();
285+
_blockPartial = 0;
285286
}
286287

287288
/**
@@ -348,6 +349,12 @@ void Inkplate::partialUpdate(bool _forced)
348349
if (getDisplayMode() == 1)
349350
return;
350351

352+
if (_blockPartial == 1 && !_forced)
353+
{
354+
display1b();
355+
return;
356+
}
357+
351358
uint16_t _pos = (E_INK_WIDTH * E_INK_HEIGHT / 8) - 1;
352359
uint32_t _send;
353360
uint8_t data = 0;

src/boards/Inkplate6plus.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ void Inkplate::display1b()
330330
clean(3, 1);
331331
vscan_start();
332332
einkOff();
333+
_blockPartial = 0;
334+
333335
}
334336

335337
/**
@@ -363,7 +365,7 @@ void Inkplate::display3b()
363365
t |= GLUT[k * 256 + (*(--dp))];
364366
hscan_start(t);
365367
t = GLUT2[k * 256 + (*(--dp))];
366-
t|=GLUT[k * 256 + (*(--dp))]);
368+
t|=GLUT[k * 256 + (*(--dp))];
367369
GPIO.out_w1ts = t | CL;
368370
GPIO.out_w1tc = DATA | CL;
369371

src/include/Graphics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class Graphics : public Shapes, public Image
8181

8282
const uint8_t discharge[16] = {0xFF, 0xFC, 0xF3, 0xF0, 0xCF, 0xCC, 0xC3, 0xC0,
8383
0x3F, 0x3C, 0x33, 0x30, 0xF, 0xC, 0x3, 0x0};
84+
uint8_t _blockPartial = 1;
85+
8486

8587
private:
8688
void startWrite(void) override;

0 commit comments

Comments
 (0)