// According to the board, cancel the corresponding macro definition // #define LILYGO_T5_V213 // #define LILYGO_T5_V22 // #define LILYGO_T5_V24 // #define LILYGO_T5_V28 // #define LILYGO_T5_V102 // #define LILYGO_T5_V266 // #define LILYGO_EPD_DISPLAY_102 //Depend https://github.com/adafruit/Adafruit_NeoPixel // #define LILYGO_EPD_DISPLAY_154 #include #include #include #include #if defined(LILYGO_T5_V102) || defined(LILYGO_EPD_DISPLAY_102) #include //1.02" b/w #include //Depend https://github.com/adafruit/Adafruit_NeoPixel #elif defined(LILYGO_T5_V266) #include // 2.66" b/w form DKE GROUP #elif defined(LILYGO_T5_V213) #include // 2.13" b/w form DKE GROUP #else // #include // 0.97" b/w form DKE GROUP // #include //1.02" b/w // #include // 1.54" b/w/r 200x200 // #include // 1.54" b/w/r 152x152 // #include // 1.54" b/w // #include // 1.51" b/w form DKE GROUP // #include // 2.66" b/w form DKE GROUP // #include // 2.9" b/w/r form DKE GROUP // #include // 2.9" b/w form DKE GROUP // #include // 2.9" b/w/r form GoodDisplay // #include // 2.13" b/w/r form GoodDisplay // #include // 2.13" b/w old panel , form GoodDisplay // #include // 2.13" b/w old panel , form GoodDisplay // #include // 2.13" b/w old panel , form GoodDisplay // #include // 2.13" b/w form GoodDisplay 4-color // #include // 2.13" b/w Ultra wide temperature , form GoodDisplay // #include // 2.13" b/w form DKE GROUP // #include // 2.7" b/w form GoodDisplay // #include // 2.7" b/w/r form GoodDisplay // #include // 2.9" b/w form GoodDisplay // #include // 7.5" b/w form DKE GROUP #endif #include #include // #define USING_SOFT_SPI //Uncomment this line to use software SPI #if defined(USING_SOFT_SPI) GxIO_Class io(EPD_SCLK, EPD_MISO, EPD_MOSI, EPD_CS, EPD_DC, EPD_RSET); #else GxIO_Class io(SPI, EPD_CS, EPD_DC, EPD_RSET); #endif GxEPD_Class display(io, /*RST=*/ EPD_RSET, /*BUSY=*/ EPD_BUSY); // default selection of (9), 7 void setup() { #if !defined(USING_SOFT_SPI) SPI.begin(EPD_SCLK, EPD_MISO, EPD_MOSI); #endif display.init(); display.eraseDisplay(); // comment out next line to have no or minimal Adafruit_GFX code display.drawPaged(drawHelloWorld); // version for AVR using paged drawing, works also on other processors } void drawHelloWorld() { display.setTextColor(GxEPD_BLACK); display.print("Hello World!"); } void loop() {};