Skip to content

Commit 0d25232

Browse files
committed
fix ek79 tricolor
1 parent 2354334 commit 0d25232

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/EPDTest/EPDTest.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Adafruit_IL0373 display(212, 104, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
3232
/* Uncomment the following line if you are using 2.7" tricolor or grayscale EPD */
3333
//Adafruit_IL91874 display(264, 176, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS);
3434

35+
// 2.7" tricolor with Adafruit_EK79686
36+
//Adafruit_EK79686 display(264, 176, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS);
37+
3538
/* Uncomment the following line if you are using 2.9" EPD */
3639
//Adafruit_IL0373 display(296, 128, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
3740
//#define FLEXIBLE_290

src/drivers/Adafruit_EK79686.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ void Adafruit_EK79686::busy_wait(void) {
125125
/**************************************************************************/
126126
void Adafruit_EK79686::begin(bool reset) {
127127
Adafruit_EPD::begin(reset);
128-
setBlackBuffer(1, true); // black defaults to inverted
129-
setColorBuffer(0, false); // red defaults to not-inverted
128+
setBlackBuffer(0, true); // black defaults to inverted
129+
setColorBuffer(1, false); // red defaults to not-inverted
130130

131131
powerDown();
132132
}

0 commit comments

Comments
 (0)