-
Notifications
You must be signed in to change notification settings - Fork 0
E Paper
Josh Perriman edited this page Aug 23, 2018
·
4 revisions
The e-Paper display used on the node is the Waveshare 2.9 inch Module.
There is 2 libraries that can be used to to draw images to this display.
This library is available in the Demo Code on the wiki page for the display.
This library is more complex to use but allows for partial or full screen updates. The partial updates are faster and allows for previously displayed information to remain when adding data to the display.
This library can be viewed here. It can be installed via the arduino library manager.
This library is based on a LCD graphics library by adafruit. A guide on how to use the drawing functions can be viewed here.
The below example shows the required libraries and the pin connections for micronode display.
// libs required for the 2.9" e-Paper display
#include <GxEPD.h>
#include <GxGDEH029A1/GxGDEH029A1.cpp> // 2.9" b/w
#include <GxIO/GxIO_SPI/GxIO_SPI.cpp>
#include <GxIO/GxIO.cpp>
GxIO_Class io(SPI, /*CS=*/ 3, /*DC=*/ 4, /*RST=*/ 5);
GxEPD_Class display(io, /*RST=*/ 5, /*BUSY=*/ 6);
void setup(){
display.init();
}
void loop(){
}