Skip to content

Subclasses of QRcodeDisplay to be able to use E-Ink displays as Lilygo models

Notifications You must be signed in to change notification settings

yoprogramo/QRcodeEink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QRcodeEink

Subclass that you can use jointly with https://github.com/yoprogramo/QRcodeDisplay to generate QRcodes in EINK displays like Lilygo TTGO T5

To use it:

In platform.io

Add as dependencies:

In arduino ide

Open Library Manager (menu Sketch > Include Library > Manage Libraries…) then install the following libraries:

** QRcodeDisplay ** QRcodeOled ** Adafruit GFX [email protected] ** https://github.com/lewisxhe/GxEPD

Creating a QRcode is just as simple as:

#define ELINK_SS 5
#define ELINK_BUSY 4
#define ELINK_RESET 16
#define ELINK_DC 17

#include <GxEPD.h>
#include <GxIO/GxIO_SPI/GxIO_SPI.h>
#include <GxIO/GxIO.h>
#include <qrcodeeink.h>

GxIO_Class io(SPI, ELINK_SS, ELINK_DC, ELINK_RESET);
GxEPD_Class display(io, ELINK_RESET, ELINK_BUSY);

QRcodeEink qrcode (&display);

void setup() {

   qrcode.init();
   qrcode.create("Hello world.");

}

For other displays, please refer the main repository: https://github.com/yoprogramo/QRcodeDisplay

About

Subclasses of QRcodeDisplay to be able to use E-Ink displays as Lilygo models

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages