Skip to content

Subclasses of QRcodeDisplay to be able to use TFT displays using TFT_eSPI library.

Notifications You must be signed in to change notification settings

alex-code/QRcode_eSPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QRcode_eSPI

Subclass that you can use jointly with https://github.com/yoprogramo/QRcodeDisplay to generate QRcodes in TFT displays like ST7735 and any other supported by TFT_eSPI

To use it:

In platform.io:

Add as dependencies:

  • yoprogramo/QRcodeDisplay
  • yoprogramo/QRcode_eSPI
  • bodmer/TFT_eSPI

You can configure in platformio.ini the data about hardware model and connections

In arduino ide

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

  • QRcodeDisplay
  • QRcode_eSPI
  • TFT_eSPI

Create or update your user_setup to match your hardware specifications.

Creating a QRcode is just as simple as:


#include <SPI.h>
#include <TFT_eSPI.h>
#include <qrcode_espi.h>

TFT_eSPI display = TFT_eSPI();
QRcode_eSPI qrcode (&display);


void setup() {

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

}

Main code provided by Ruslan Baybekov (https://github.com/oxyii)

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

About

Subclasses of QRcodeDisplay to be able to use TFT displays using TFT_eSPI library.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%