Skip to content

Instantly share code, notes, and snippets.

@sarath341
sarath341 / ttgo-epaper.ino
Created July 29, 2021 11:13
TTGO EPaper TBadge Display Example Code
// include library, include base class, make path known
#include <GxEPD.h>
#include <GxIO/GxIO_SPI/GxIO_SPI.h>
#include <GxIO/GxIO.h>
// select the display class to use, only one
//#include <GxGDEP015OC1/GxGDEP015OC1.h>// 1.54" b/w
//#include <GxGDEW0154Z04/GxGDEW0154Z04.h>// 1.54" b/w/r 200x200
//#include <GxGDEW0154Z17/GxGDEW0154Z17.h>// 1.54" b/w/r 152x152
//#include <GxGDE0213B1/GxGDE0213B1.h>// 2.13" b/w
//#include <GxGDEW0213Z16/GxGDEW0213Z16.h>// 2.13" b/w/r