MH-ET LIVE 1.54-inches E-Paper epaper e-ink eink ESP32 new version: https://github.com/ZinggJM/GxEPD2/tree/master/examples/GxEPD2_MinimumExample {{:esp32:pasted:20210505-233910.png}} {{:esp32:pasted:20210505-233839.png}} defaultinis pvz veikia tik portus reikia pakeist https://github.com/ZinggJM/GxEPD/blob/master/examples/GxEPD_MinimumExample/GxEPD_MinimumExample.ino new lib - recomended // GxEPD2_MinimumExample.ino by Jean-Marc Zingg // purpose is e.g. to determine minimum code and ram use by this library // see GxEPD2_wiring_examples.h of GxEPD2_Example for wiring suggestions and examples // if you use a different wiring, you need to adapt the constructor parameters! // uncomment next line to use class GFX of library GFX_Root instead of Adafruit_GFX, to use less code and ram //#include #include // including both doesn't use more code or ram #include // including both doesn't use more code or ram // select the display class and display driver class in the following file (new style): #include "GxEPD2_display_selection_new_style.h" // alternately you can copy the constructor from GxEPD2_display_selection.h or GxEPD2_display_selection_added.h of GxEPD2_Example to here // e.g. for Wemos D1 mini: //GxEPD2_BW display(GxEPD2_154_D67(/*CS=D8*/ SS, /*DC=D3*/ 0, /*RST=D4*/ 2, /*BUSY=D2*/ 4)); // GDEH0154D67 //GxIO_Class io(SPI, /*CS=5*/ 5, /*DC=*/ 25, /*RST=*/ 16); // arbitrary selection of 17, 16 GxEPD2_BW display(GxEPD2_154_D67(/*CS=5*/ 5, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4)); // arbitrary selection of (16), 4 void setup() { display.init(); // comment out next line to have no or minimal Adafruit_GFX code display.setTextColor(GxEPD_BLACK); display.firstPage(); do { display.fillScreen(GxEPD_WHITE); // comment out next line to have no or minimal Adafruit_GFX code display.print("Labas vakaras! veikia!"); } while (display.nextPage()); } void loop() {}; old lib // GxEPD_MinimumExample by Jean-Marc Zingg #include // select the display class to use, only one, copy from GxEPD_Example #include // 1.54" b/w #include #include // constructor for AVR Arduino, copy from GxEPD_Example else GxIO_Class io(SPI, /*CS=*/ 5, /*DC=*/ 17, /*RST=*/ 16); // arbitrary selection of 8, 9 selected for default of GxEPD_Class GxEPD_Class display(io, /*RST=*/ 9, /*BUSY=*/ 4); // default selection of (9), 7 void setup() { 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() {};