EPD¶
This demonstration is for familiarization with the EPD and the Pervasive Display Library Suite (PDLS). To drive the EPD, you can learn the details of parsing image data and flashing the display or dive right away to drawing lines and writing text with PDLS. For this demo, and the rest, we’re using a modified version of the Common_WhoAmI example in PDLS Basic.
The goal of the example is to write “Hello World” at the center of the EPD. Found below is a snippet of the demo code, with focus on the relevant functions:
void displayWhoAmI()
{
myScreen.setOrientation(ORIENTATION_LANDSCAPE);
myScreen.selectFont(fontLarge);
uint16_t x = 150;
uint16_t y = 70;
uint16_t dy = myScreen.characterSizeY();
myScreen.gText(x, y, "Hello World");
myScreen.flush();
}

Resulting image on the 2.9" EPD
More demos can be found here: https://github.com/PervasiveDisplays/PDLS_EXT4_Basic_Matter/tree/main/examples/EXT4