User Tools

Site Tools


esp32:mh-et_live_1.54-inches_e-paper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
esp32:mh-et_live_1.54-inches_e-paper [2021/05/05 23:28] – created aistisesp32:mh-et_live_1.54-inches_e-paper [2021/11/16 14:33] (current) – aistis
Line 1: Line 1:
-MH-ET LIVE 1.54-inches E-Paper+MH-ET LIVE 1.54-inches E-Paper epaper e-ink eink
  
 ESP32 ESP32
  
-veikia tik portus reikia pakeist+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 https://github.com/ZinggJM/GxEPD/blob/master/examples/GxEPD_MinimumExample/GxEPD_MinimumExample.ino
  
 +new lib - recomended
 +<code cpp>
 +// 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 <GFX.h>
 +
 +#include <GxEPD2_BW.h> // including both doesn't use more code or ram
 +#include <GxEPD2_3C.h> // 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<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> 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<GxEPD2_154_D67, GxEPD2_154_D67::HEIGHT> 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() {};
 +</code>
 +
 +
 +old lib
 <code cpp> <code cpp>
  
esp32/mh-et_live_1.54-inches_e-paper.1620246505.txt.gz · Last modified: by aistis