Skip to content

Commit 7c61b9d

Browse files
committed
1.54" displays
1 parent 7f042cc commit 7c61b9d

File tree

5 files changed

+12
-22
lines changed

5 files changed

+12
-22
lines changed

examples/EPDTest/EPDTest.ino

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
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" EPD with IL0373
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
21+
// Uncomment the following line if you are using 1.54" EPD with SSD1680
2222
//Adafruit_SSD1680 display(152, 152, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
23-
24-
/* Uncomment the following line if you are using 1.54" monochrome EPD */
23+
// Uncomment the following line if you are using 1.54" EPD with SSD1608
2524
//Adafruit_SSD1608 display(200, 200, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
25+
// Uncomment the following line if you are using 1.54" EPD with SSD1681
26+
//Adafruit_SSD1681 display(200, 200, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
27+
2628

2729
/* Uncomment the following line if you are using 2.13" tricolor EPD */
2830
Adafruit_IL0373 display(212, 104, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

examples/ThinkInk_mono/ThinkInk_mono.ino

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

18+
// 1.54" Monochrome displays with 200x200 pixels and SSD1681 chipset
1819
//ThinkInk_154_Mono_D67 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
20+
21+
// 1.54" Monochrome displays with 200x200 pixels and SSD1608 chipset
1922
//ThinkInk_154_Mono_D27 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
2023

2124
// 1.54" Monochrome displays with 152x152 pixels and UC8151D chipset

src/panels/ThinkInk_154_Grayscale4_T8.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class ThinkInk_154_Grayscale4_T8 : public Adafruit_IL0373 {
158158
: Adafruit_IL0373(152, 152, DC, RST, CS, SRCS, BUSY, spi){};
159159

160160
void begin(thinkinkmode_t mode = THINKINK_GRAYSCALE4) {
161-
Adafruit_EPD::begin(true);
161+
Adafruit_IL0373::begin(true);
162162
setColorBuffer(0, true); // layer 0 uninverted
163163
setBlackBuffer(1, true); // layer 1 uninverted
164164

@@ -191,11 +191,6 @@ class ThinkInk_154_Grayscale4_T8 : public Adafruit_IL0373 {
191191
setRotation(3);
192192
powerDown();
193193
}
194-
195-
thinkinkmode_t getMode(void) { return inkmode; }
196-
197-
private:
198-
thinkinkmode_t inkmode; // Ink mode passed to begin()
199194
};
200195

201196
#endif // _THINKINK_154_GRAYSCALE4_T8_H

src/panels/ThinkInk_154_Mono_D27.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ThinkInk_154_Mono_D27 : public Adafruit_SSD1608 {
1515
: Adafruit_SSD1608(200, 200, DC, RST, CS, SRCS, BUSY, spi){};
1616

1717
void begin(thinkinkmode_t mode = THINKINK_MONO) {
18-
Adafruit_EPD::begin(true);
18+
Adafruit_SSD1608::begin(true);
1919
setColorBuffer(0, true); // layer 0 uninverted
2020
setBlackBuffer(0, true); // only one buffer
2121

@@ -32,11 +32,6 @@ class ThinkInk_154_Mono_D27 : public Adafruit_SSD1608 {
3232
setRotation(3);
3333
powerDown();
3434
}
35-
36-
thinkinkmode_t getMode(void) { return inkmode; }
37-
38-
private:
39-
thinkinkmode_t inkmode; // Ink mode passed to begin()
4035
};
4136

4237
#endif // _THINKINK_154_MONO_D27_H

src/panels/ThinkInk_154_Mono_D67.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ThinkInk_154_Mono_D67 : public Adafruit_SSD1681 {
1515
: Adafruit_SSD1681(200, 200, DC, RST, CS, SRCS, BUSY, spi){};
1616

1717
void begin(thinkinkmode_t mode = THINKINK_MONO) {
18-
Adafruit_EPD::begin(true);
18+
Adafruit_SSD1681::begin(true);
1919
setColorBuffer(0, true); // layer 0 uninverted
2020
setBlackBuffer(0, true); // only one buffer
2121

@@ -32,11 +32,6 @@ class ThinkInk_154_Mono_D67 : public Adafruit_SSD1681 {
3232
setRotation(3);
3333
powerDown();
3434
}
35-
36-
thinkinkmode_t getMode(void) { return inkmode; }
37-
38-
private:
39-
thinkinkmode_t inkmode; // Ink mode passed to begin()
4035
};
4136

4237
#endif // _THINKINK_154_MONO_D67_H

0 commit comments

Comments
 (0)