Skip to content

Commit db40a9c

Browse files
import missing eInk display
1 parent ea13fa8 commit db40a9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/ui/GxEPDDisplay.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <Fonts/FreeSansBold12pt7b.h>
1414
#include <Fonts/FreeSans18pt7b.h>
1515

16+
#include <epd/GxEPD2_122_T61.h> // 1.22" b/w
1617
#include <epd/GxEPD2_150_BN.h> // 1.54" b/w
1718
#include <epd/GxEPD2_213_B74.h> // 2.13" b/w
1819
#include <CRC32.h>
@@ -44,9 +45,8 @@ class GxEPDDisplay : public DisplayDriver {
4445
int last_display_crc_value = 0;
4546

4647
public:
47-
// there is a margin in y...
4848
#if defined(EINK_DISPLAY_MODEL)
49-
GxEPDDisplay() : DisplayDriver(128, 128), display(EINK_DISPLAY_MODEL(PIN_DISPLAY_CS, PIN_DISPLAY_DC, PIN_DISPLAY_RST, PIN_DISPLAY_BUSY)) {}
49+
GxEPDDisplay() : DisplayDriver(EINK_DISPLAY_MODEL::WIDTH, EINK_DISPLAY_MODEL::HEIGHT), display(EINK_DISPLAY_MODEL(PIN_DISPLAY_CS, PIN_DISPLAY_DC, PIN_DISPLAY_RST, PIN_DISPLAY_BUSY)) {}
5050
#else
5151
GxEPDDisplay() : DisplayDriver(128, 128), display(GxEPD2_150_BN(DISP_CS, DISP_DC, DISP_RST, DISP_BUSY)) {}
5252
#endif

0 commit comments

Comments
 (0)