4444// select the display class to use, only one
4545// #include <GxGDEP015OC1/GxGDEP015OC1.h> // 1.54" b/w
4646// #include <GxGDEH0154D67/GxGDEH0154D67.h> // 1.54" b/w
47+ // #include <GxDEPG0150BN/GxDEPG0150BN.h> // 1.54" b/w
4748// #include <GxGDEW0154Z04/GxGDEW0154Z04.h> // 1.54" b/w/r 200x200
4849// #include <GxGDEW0154Z17/GxGDEW0154Z17.h> // 1.54" b/w/r 152x152
4950// #include <GxGDEW0213I5F/GxGDEW0213I5F.h> // 2.13" b/w 104x212 flexible
5051// #include <GxGDE0213B1/GxGDE0213B1.h> // 2.13" b/w
5152// #include <GxGDEH0213B72/GxGDEH0213B72.h> // 2.13" b/w new panel
5253// #include <GxGDEH0213B73/GxGDEH0213B73.h> // 2.13" b/w newer panel
5354// #include <GxGDEW0213Z16/GxGDEW0213Z16.h> // 2.13" b/w/r
55+ // #include <GxGDEH0213Z19/GxGDEH0213Z19.h> // 2.13" b/w/r UC8151D
56+ // #include <GxGDEW0213T5D/GxGDEW0213T5D.h> // 2.13" b/w 104x212 UC8151D
57+ // #include <GxDEPG0213BN/GxDEPG0213BN.h> // 2.13" b/w 128x250, SSD1680, TTGO T5 V2.4.1, V2.3.1
5458// #include <GxGDEH029A1/GxGDEH029A1.h> // 2.9" b/w
55- // #include <GxGDEW029T5/GxGDEW029T5.h> // 2.9" b/w IL0373
56- // #include <GxGDEM029T94/GxGDEM029T94.h> // 2.9" b/w
59+ // #include <GxGDEW029T5/GxGDEW029T5.h> // 2.9" b/w UC8151 (IL0373)
60+ // #include <GxGDEW029T5D/GxGDEW029T5D.h> // 2.9" b/w UC8151D
61+ // #include <GxGDEM029T94/GxGDEM029T94.h> // 2.9" b/w
62+ // #include <GxDEPG0290BS/GxDEPG0290BS.h> // 2.9" b/w Waveshare variant, TTGO T5 V2.4.1 2.9"
5763// #include <GxGDEW029Z10/GxGDEW029Z10.h> // 2.9" b/w/r
64+ // #include <GxGDEH029Z13/GxGDEH029Z13.h> // 2.9" b/w/r UC8151D
5865// #include <GxGDEW026T0/GxGDEW026T0.h> // 2.6" b/w
66+ // #include <GxDEPG0266BN/GxDEPG0266BN.h> // 2.66" b/w 152x296, SSD1680, TTGO T5 V2.66, TTGO T5 V2.4.1
5967// #include <GxGDEW027C44/GxGDEW027C44.h> // 2.7" b/w/r
6068// #include <GxGDEW027W3/GxGDEW027W3.h> // 2.7" b/w
69+ // #include <GxGDEY027T91/GxGDEY027T91.h> // 2.7" b/w
6170// #include <GxGDEW0371W7/GxGDEW0371W7.h> // 3.7" b/w
6271// #include <GxGDEW042T2/GxGDEW042T2.h> // 4.2" b/w
6372// #include <GxGDEW042Z15/GxGDEW042Z15.h> // 4.2" b/w/r
@@ -89,8 +98,8 @@ GxEPD_Class display(io, /*RST=D4*/ 2, /*BUSY=D2*/ 4); // default selection of D4
8998// Heltec E-Paper 1.54" b/w without RST, BUSY
9099// GxEPD_Class display(io, /*RST=D4*/ -1, /*BUSY=D2*/ -1); // no RST, no BUSY
91100// Waveshare e-Paper ESP8266 Driver Board
92- // GxIO_Class io(SPI, 15, 4, 5);
93- // GxEPD_Class display(io, 5, 16);
101+ // GxIO_Class io(SPI, 15, 4, 5);
102+ // GxEPD_Class display(io, 5, 16);
94103
95104#elif defined(ESP32)
96105
@@ -99,6 +108,9 @@ GxEPD_Class display(io, /*RST=D4*/ 2, /*BUSY=D2*/ 4); // default selection of D4
99108
100109GxIO_Class io (SPI , /* CS=5*/ SS , /* DC=*/ 17 , /* RST=*/ 16 ); // arbitrary selection of 17, 16
101110GxEPD_Class display (io, /* RST=*/ 16 , /* BUSY=*/ 4 ); // arbitrary selection of (16), 4
111+ // for LILYGO® TTGO T5 2.66 board uncomment next two lines instead of previous two lines
112+ // GxIO_Class io(SPI, /*CS=5*/ SS, /*DC=*/ 19, /*RST=*/ 4); // LILYGO® TTGO T5 2.66
113+ // GxEPD_Class display(io, /*RST=*/ 4, /*BUSY=*/ 34); // LILYGO® TTGO T5 2.66
102114
103115#elif defined(ARDUINO_ARCH_SAMD)
104116
@@ -183,6 +195,7 @@ void loop()
183195 delay (2000 );
184196 display.drawPaged (showFontCallback);
185197#endif
198+ display.powerDown ();
186199 delay (10000 );
187200}
188201
@@ -201,7 +214,7 @@ void showBitmapExample()
201214}
202215#endif
203216
204- #if defined(_GxGDEH0154D67_H_)
217+ #if defined(_GxGDEH0154D67_H_) || defined(_GxDEPG0150BN_H_)
205218void showBitmapExample ()
206219{
207220 display.drawExampleBitmap (BitmapExample1, sizeof (BitmapExample1));
@@ -264,7 +277,7 @@ void showBitmapExample()
264277}
265278#endif
266279
267- #if defined(_GxGDEH0213B72_H_) || defined(_GxGDEH0213B73_H_)
280+ #if defined(_GxGDEH0213B72_H_) || defined(_GxGDEH0213B73_H_) || defined(_GxDEPG0213BN_H_)
268281void showBitmapExample ()
269282{
270283 display.drawExampleBitmap (BitmapExample1, sizeof (BitmapExample1));
@@ -311,6 +324,20 @@ void showBitmapExample()
311324}
312325#endif
313326
327+ #if defined(_GxGDEW0213T5D_H_)
328+ void showBitmapExample ()
329+ {
330+ display.drawBitmap (BitmapExample1, sizeof (BitmapExample1));
331+ delay (5000 );
332+ display.drawBitmap (BitmapExample2, sizeof (BitmapExample2));
333+ delay (5000 );
334+ display.fillScreen (GxEPD_WHITE);
335+ display.drawBitmap (BitmapExample1, 0 , 0 , GxEPD_WIDTH, GxEPD_HEIGHT, GxEPD_BLACK);
336+ display.update ();
337+ delay (5000 );
338+ }
339+ #endif
340+
314341#if defined(_GxGDEW0213Z16_H_)
315342#define HAS_RED_COLOR
316343void showBitmapExample ()
@@ -335,6 +362,19 @@ void showBitmapExample()
335362}
336363#endif
337364
365+ #if defined(_GxGDEH0213Z19_H_)
366+ #define HAS_RED_COLOR
367+ void showBitmapExample ()
368+ {
369+ display.drawExamplePicture (BitmapExample1_black, BitmapExample1_red, sizeof (BitmapExample1_black), sizeof (BitmapExample1_red));
370+ delay (5000 );
371+ #if !defined(__AVR)
372+ display.drawExamplePicture (BitmapExample2_black, BitmapExample2_red, sizeof (BitmapExample2_black), sizeof (BitmapExample2_red));
373+ delay (5000 );
374+ #endif
375+ }
376+ #endif
377+
338378#if defined(_GxGDEH029A1_H_)
339379void showBitmapExample ()
340380{
@@ -350,7 +390,7 @@ void showBitmapExample()
350390}
351391#endif
352392
353- #if defined(_GxGDEW029T5_H_)
393+ #if defined(_GxGDEW029T5_H_) || defined(_GxGDEW029T5D_H_)
354394void showBitmapExample ()
355395{
356396 display.drawExampleBitmap (BitmapExample1, sizeof (BitmapExample1));
@@ -367,7 +407,7 @@ void showBitmapExample()
367407}
368408#endif
369409
370- #if defined(_GxGDEM029T94_H_)
410+ #if defined(_GxGDEM029T94_H_) || defined(_GxDEPG0290BS_H_)
371411void showBitmapExample ()
372412{
373413 display.drawExampleBitmap (BitmapExample1, sizeof (BitmapExample1));
@@ -381,7 +421,7 @@ void showBitmapExample()
381421}
382422#endif
383423
384- #if defined(_GxGDEW029Z10_H_)
424+ #if defined(_GxGDEW029Z10_H_) || defined(_GxGDEH029Z13_H_)
385425#define HAS_RED_COLOR
386426void showBitmapExample ()
387427{
@@ -408,7 +448,7 @@ void showBitmapExample()
408448}
409449#endif
410450
411- #if defined(_GxGDEW026T0_H_)
451+ #if defined(_GxGDEW026T0_H_) || defined(_GxDEPG0266BN_H_)
412452void showBitmapExample ()
413453{
414454 display.drawExampleBitmap (BitmapExample1, sizeof (BitmapExample1));
@@ -441,7 +481,7 @@ void showBitmapExample()
441481}
442482#endif
443483
444- #if defined(_GxGDEW027W3_H_)
484+ #if defined(_GxGDEW027W3_H_) || defined(_GxGDEY027T91_H_)
445485void showBitmapExample ()
446486{
447487 display.drawExampleBitmap (BitmapExample1, sizeof (BitmapExample1));
@@ -688,7 +728,8 @@ void drawCornerTest()
688728 display.setRotation (rotation); // restore
689729}
690730
691- #if defined(_GxGDEP015OC1_H_) || defined(_GxGDEH0154D67_H_) || defined(_GxGDE0213B1_H_) || defined(_GxGDEH0213B72_H_) || defined(_GxGDEH0213B73_H_)|| defined(_GxGDEH029A1_H_)
731+ #if defined(_GxGDEP015OC1_H_) || defined(_GxGDEH0154D67_H_) || defined(_GxGDE0213B1_H_) || defined(_GxGDEH0213B72_H_) || defined(_GxGDEH0213B73_H_)|| defined(_GxGDEH029A1_H_) \
732+ || defined (_GxDEPG0150BN_H_) || defined (_GxDEPG0213BN_H_)
692733#include " IMG_0001.h"
693734void showBoat ()
694735{
0 commit comments