#include <GxEPD2_BW.h>This is a crucial include that allows us to initialize the display.
More information at the bottom of this file. Also, this header
is declared in ZinggJM/GxEPD2:src/GxEPD2_BW.h
#include <GxEPD2_BW.h>E-paper pins
#define EPD_CS 22
#define EPD_DC 15
#define EPD_RST 13
#define EPD_BUSY 34We initialize the display here. This is a crucial piece of BOILERPLATE.
This depends on us including the GxEPD2_BW.h header.
static GxEPD2_BW<GxEPD2_420, GxEPD2_420::HEIGHT> display(
The display used by paperd.ink is called GDEW042T2.
It is a 4.2” display and thus we use the GxEPD2_420 class/constructor.
The parameters we pass are:
GxEPD2_420(Chip select pin
EPD_CS,Data/Command pin
EPD_DC,Reset pin
EPD_RST,Busy pin
EPD_BUSY));