From 657f22d05893f80e0a98132de82ecc2b7b455c86 Mon Sep 17 00:00:00 2001 From: Mark Trevor Birss Date: Wed, 29 Mar 2023 14:09:27 +0200 Subject: [PATCH] Update EInkDisplay2.cpp --- src/graphics/EInkDisplay2.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/graphics/EInkDisplay2.cpp b/src/graphics/EInkDisplay2.cpp index 269e19968..0b3c95ba4 100644 --- a/src/graphics/EInkDisplay2.cpp +++ b/src/graphics/EInkDisplay2.cpp @@ -12,7 +12,7 @@ #if defined(TTGO_T_ECHO) #define TECHO_DISPLAY_MODEL GxEPD2_154_D67 -#elif defined(RAK4630) || defined(MAKERPYTHON) +#elif defined(RAK4630) // GxEPD2_213_BN - RAK14000 2.13 inch b/w 250x122 - changed from GxEPD2_213_B74 - which was not going to give partial update // support @@ -27,6 +27,10 @@ // 1.54 inch 200x200 - GxEPD2_154_M09 //#define TECHO_DISPLAY_MODEL GxEPD2_154_M09 +#elif defined(MAKERPYTHON) +// 2.9 inch 296x128 - GxEPD2_290_T5D +#define TECHO_DISPLAY_MODEL GxEPD2_290_T5D + #elif defined(PCA10059) // 4.2 inch 300x400 - GxEPD2_420_M01 @@ -45,20 +49,23 @@ EInkDisplay::EInkDisplay(uint8_t address, int sda, int scl, OLEDDISPLAY_GEOMETRY { #if defined(TTGO_T_ECHO) setGeometry(GEOMETRY_RAWMODE, TECHO_DISPLAY_MODEL::WIDTH, TECHO_DISPLAY_MODEL::HEIGHT); -#elif defined(RAK4630) || defined(MAKERPYTHON) +#elif defined(RAK4630) // GxEPD2_213_BN - RAK14000 2.13 inch b/w 250x122 - // setGeometry(GEOMETRY_RAWMODE, 250, 122); + setGeometry(GEOMETRY_RAWMODE, 250, 122); // GxEPD2_420_M01 // setGeometry(GEOMETRY_RAWMODE, 300, 400); // GxEPD2_290_T5D - setGeometry(GEOMETRY_RAWMODE, 296, 128); + //setGeometry(GEOMETRY_RAWMODE, 296, 128); // GxEPD2_154_M09 // setGeometry(GEOMETRY_RAWMODE, 200, 200); - +#elif defined(MAKERPYTHON) + // GxEPD2_290_T5D + setGeometry(GEOMETRY_RAWMODE, 296, 128); + #elif defined(PCA10059) // GxEPD2_420_M01 @@ -243,4 +250,4 @@ bool EInkDisplay::connect() return true; } -#endif \ No newline at end of file +#endif