Skip to content

Instantly share code, notes, and snippets.

@woodif
Created October 22, 2021 12:36
Show Gist options
  • Save woodif/f0ac386962ce8ea27f7e44ff727fa558 to your computer and use it in GitHub Desktop.
Save woodif/f0ac386962ce8ea27f7e44ff727fa558 to your computer and use it in GitHub Desktop.
test e-paper
#define LILYGO_T5_V24
// GxEPD_MinimumExample by Jean-Marc Zingg
#include <boards.h>
#include <GxEPD.h>
// select the display class to use, only one, copy from GxEPD_Example
#include <GxGDE0213B1/GxGDE0213B1.h> // 2.13" b/w old panel , form GoodDisplay
#include <GxIO/GxIO_SPI/GxIO_SPI.h>
#include <GxIO/GxIO.h>
// constructor for AVR Arduino, copy from GxEPD_Example else
GxIO_Class io(SPI, EPD_CS, EPD_DC, EPD_RSET);
GxEPD_Class display(io, EPD_RSET, EPD_BUSY);
void setup()
{
display.init();
display.eraseDisplay();
// comment out next line to have no or minimal Adafruit_GFX code
display.fillScreen(GxEPD_WHITE);
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() {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment