Skip to content

Commit f5b1538

Browse files
Laurence BankLaurence Bank
authored andcommitted
Improved grayscales for generic displays
1 parent de11cf7 commit f5b1538

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/FastEPD.inl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ const uint8_t u8GrayMatrix[] = {
4242
};
4343

4444
const uint8_t u8SixInchMatrix[] = {
45-
/* 0 */ 0, 0, 0, 2, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
46-
/* 1 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
45+
/* 0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
46+
/* 1 */ 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
4747
/* 2 */ 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
4848
/* 3 */ 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
49-
/* 4 */ 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
50-
/* 5 */ 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
51-
/* 6 */ 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0,
52-
/* 7 */ 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5858
/* 13 */ 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 0,
@@ -1321,7 +1321,7 @@ int bbepFullUpdate(FASTEPDSTATE *pState, bool bFast, bool bKeepOn, BBEPRECT *pRe
13211321
} // 4bpp
13221322

13231323
// Set the drivers inside epaper panel into dischare state.
1324-
bbepClear(pState, 3, 1, pRect);
1324+
bbepClear(pState, 2, 1, pRect);
13251325
if (!bKeepOn) bbepEinkPower(pState, 0);
13261326

13271327
#ifdef SHOW_TIME

0 commit comments

Comments
 (0)