Skip to content

Commit 7f042cc

Browse files
committed
1.54" tricolor ssd1680
1 parent 0d25232 commit 7f042cc

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

examples/EPDTest/EPDTest.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
#define EPD_RESET 5 // can set to -1 and share with microcontroller Reset!
1717
#define EPD_BUSY 7 // can set to -1 to not use a pin (will wait a fixed delay)
1818

19-
/* Uncomment the following line if you are using 1.54" tricolor EPD */
19+
// Uncomment the following line if you are using 1.54" tricolor EPD
2020
//Adafruit_IL0373 display(152, 152, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
21+
// Uncomment the following line if you are using 1.54" tricolor EPD with SSD1680
22+
//Adafruit_SSD1680 display(152, 152, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
2123

2224
/* Uncomment the following line if you are using 1.54" monochrome EPD */
2325
//Adafruit_SSD1608 display(200, 200, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

src/panels/ThinkInk_154_Tricolor_RW.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ class ThinkInk_154_Tricolor_RW : public Adafruit_SSD1680 {
1616
: Adafruit_SSD1680(152, 152, DC, RST, CS, SRCS, BUSY, spi){};
1717

1818
void begin(thinkinkmode_t mode = THINKINK_MONO) {
19-
Adafruit_EPD::begin(true);
20-
setBlackBuffer(0, true);
21-
setColorBuffer(1, false);
22-
19+
Adafruit_SSD1680::begin(true);
20+
2321
inkmode = mode; // Preserve ink mode for ImageReader or others
2422

2523
layer_colors[EPD_WHITE] = 0b00;
@@ -33,11 +31,6 @@ class ThinkInk_154_Tricolor_RW : public Adafruit_SSD1680 {
3331
setRotation(3);
3432
powerDown();
3533
}
36-
37-
thinkinkmode_t getMode(void) { return inkmode; }
38-
39-
private:
40-
thinkinkmode_t inkmode; // Ink mode passed to begin()
4134
};
4235

4336
#endif // _THINKINK_154_TRI

0 commit comments

Comments
 (0)