Code for different H@ck3Rb0x3$
Reading/How-To/Video:
https://www.waveshare.com/wiki/1.54inch_e-Paper_Module#Demo_video
Code that worked:
-
First import library (with Library Manager in Arduino): GxEPD (NOT GxEPD2)
-
Code:
By xxlucas42:
https://gist.githubusercontent.com/xxlukas42/
Example File:
EDITS to example .ino file:
- UNcomment line:
#include <GxGDEW0154Z04/GxGDEW0154Z04.h> // 1.54" b/w/r 200x200
- Confirm proper pinning on lines just above SETUP Function:
GxIO_Class io(SPI, /CS=/ SS, /DC=/ 8, /RST=/ 9);
GxEPD_Class display(io, /RST=/ 9, /BUSY=/ 7);