User Tools

Site Tools


esp32:mh-et_live_1.54-inches_e-paper

This is an old revision of the document!


MH-ET LIVE 1.54-inches E-Paper

ESP32

veikia tik portus reikia pakeist

https://github.com/ZinggJM/GxEPD/blob/master/examples/GxEPD_MinimumExample/GxEPD_MinimumExample.ino

// GxEPD_MinimumExample by Jean-Marc Zingg
 
#include <GxEPD.h>
 
// select the display class to use, only one, copy from GxEPD_Example
#include <GxGDEH0154D67/GxGDEH0154D67.h>  // 1.54" b/w
 
#include <GxIO/GxIO_SPI/GxIO_SPI.h>
#include <GxIO/GxIO.h>
 
// 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() {};
esp32/mh-et_live_1.54-inches_e-paper.1620246505.txt.gz · Last modified: by aistis