Install Adafruit_EPD & GFX libraries
To begin reading sensor data, you will need to install the Adafruit_EPD library (code on our github repository). It is available from the Arduino library manager so we recommend using that.
From the IDE open up the library manager...
And type in Adafruit EPD to locate the library. Click Install
Do the same to install the latest Adafruit GFX library, click Install
While we're in the Library Manager, we need to install a few more libraries. Search for and install Adafruit BusIO, Adafruit ImageReader Library, Adafruit SPIFlash, and SdFat - Adafruit Fork.
Configure Display Type & Size
Find the part of the script where you can pick which display is going to be used. The eInk displays are made up a combination of a Chipset and a Film in different sizes. We have narrowed it down to just a few choices between the size of the display, chipset, and film based on available combinations. In the sketch, we have sorted it by size, so it's easy to find your display.
You will need to uncomment the appropriate initializer and and leave any other type commented.
For the 1.54" 152x152 Tri-Color Gizmo, you will use the ThinkInk_154_Tricolor_Z17
display initializer.
For the 1.54" 200x200 Tri-Color Gizmo, you will use the ThinkInk_154_Tricolor_Z90
display initializer.
For example, for the 200x200 Gizmo, uncomment this line, and comment any other line that is creating a ThinkInk display object
// 1.54" 200x200 Tricolor EPD with SSD1681 chipset ThinkInk_154_Tricolor_Z90 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
For the older 152x152 Gizmo, uncomment this line, and comment any other line that is creating a ThinkInk display object
// 1.54" 152x152 Tricolor EPD with ILI0373 chipset ThinkInk_154_Tricolor_Z17 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
Upload the example to your Circuit Playground Express or Circuit Playground Bluefruit. You should now see a series of demos running. Note that the demos are set to pause for 15 seconds between each demo which is ok for short term usage, but it is strongly recommended to use 180 between refreshes when used over a longer period of time.
Text editor powered by tinymce.