Skip to content

Commit 01d8680

Browse files
Laurence BankLaurence Bank
authored andcommitted
Added (untested) configurations for the Inkplate10 and Inkplate6
1 parent a9de6b9 commit 01d8680

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

examples/Arduino/grayscale_test/grayscale_test.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ void setup() {
66
// epaper.initPanel(BB_PANEL_INKPLATE6PLUS);
77
// epaper.initPanel(BB_PANEL_INKPLATE5V2);
88
epaper.initPanel(BB_PANEL_EPDIY_V7);
9-
// epaper.setPanelSize(1024, 758);
10-
epaper.setPanelSize(1280, 720);
9+
epaper.setPanelSize(1024, 758);
10+
// epaper.setPanelSize(1280, 720);
1111
epaper.setMode(BB_MODE_4BPP);
1212
epaper.fillScreen(0xf);
1313
for (int i=0; i<800; i+=50) {

src/FastEPD.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ enum {
6161
BB_PANEL_T5EPAPERV1,
6262
BB_PANEL_T5EPAPERS3PRO,
6363
BB_PANEL_EPDIY_V7_16,
64+
BB_PANEL_INKPLATE10,
6465
BB_PANEL_CUSTOM,
6566
BB_PANEL_COUNT
6667
};

src/FastEPD.inl

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,25 @@ const uint8_t u8GrayMatrix[] = {
4141
/* 15 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0
4242
};
4343

44+
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, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 0,
59+
/* 14 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0,
60+
/* 15 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0
61+
};
62+
4463
const uint8_t u8M5Matrix[] = {
4564
/* 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,
4665
/* 1 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
@@ -79,7 +98,7 @@ const BBPANELDEF panelDefs[] = {
7998

8099

81100
{0, 0, 10000000, BB_PANEL_FLAG_NONE, {5,6,7,15,16,17,18,8}, 8, 11, 45, 48, 41, 8, 42,
82-
4, 14, 39, 40, BB_NOT_USED, 0, 47, u8GrayMatrix, sizeof(u8GrayMatrix), 0}, // BB_PANEL_EPDIY_V7
101+
4, 14, 39, 40, BB_NOT_USED, 0, 47, u8SixInchMatrix, sizeof(u8SixInchMatrix), 0}, // BB_PANEL_EPDIY_V7
83102
{1024, 758, 13333333, BB_PANEL_FLAG_SLOW_SPH, {4,5,18,19,23,25,26,27}, 8, 4, 2, 32, 33, 0, 2,
84103
0, 7, 21, 22, 3, 5, 15, u8GrayMatrix, sizeof(u8GrayMatrix), 0}, // BB_PANEL_INKPLATE6PLUS
85104

@@ -93,6 +112,8 @@ const BBPANELDEF panelDefs[] = {
93112
4, 14, 39, 40, BB_NOT_USED, 0, 13,u8GrayMatrix, sizeof(u8GrayMatrix), 0}, // BB_PANEL_T5EPAPERS3PRO
94113
{0, 0, 20000000, BB_PANEL_FLAG_NONE, {5,6,7,15,16,17,18,8,9,10,11,12,13,14,21,47}, 16, 11, 45, 48, 41, 8, 42,
95114
4, 14, 39, 40, BB_NOT_USED, 0, 1, u8GrayMatrix, sizeof(u8GrayMatrix), 0}, // BB_PANEL_EPDIY_V7_16
115+
{1200, 820, 13333333, BB_PANEL_FLAG_SLOW_SPH, {4,5,18,19,23,25,26,27}, 8, 4, 2, 32, 33, 0, 2,
116+
0, 7, 21, 22, 3, 5, 15, u8GrayMatrix, sizeof(u8GrayMatrix), 0}, // BB_PANEL_INKPLATE10
96117
};
97118
//
98119
// Forward references for panel callback functions

0 commit comments

Comments
 (0)