Datasheet
CircuitPython on Python 2.x, it isn't supported!
If that complains about pip3 not being installed, then run this first to install it:
sudo apt-get install python3-pip
Download font5x8.bin
This library also requires a font file to run! You can download it below. Before continuing, make sure the folder you
are running scripts from contains the font5x8.bin file.
https://adafru.it/Gfb
https://adafru.it/Gfb
DejaVu TTF Font
Raspberry Pi usually comes with the DejaVu font already installed, but in case it didn't, you can run the following to
install it:
sudo apt-get install ttf-dejavu
Pillow Library
Some of the examples also use PIL, the Python Imaging Library, to allow graphics and using text with custom fonts.
There are several system libraries that PIL relies on, so installing via a package manager is the easiest way to bring in
everything:
sudo apt-get install python3-pil
That's it. You should be ready to go.
Usage
To demonstrate the usage of the display we'll initialize it and draw some lines from the Python REPL.
Run the following code to import the necessary modules and set up the pin assignments:
import digitalio
import busio
import board
from adafruit_epd.epd import Adafruit_EPD
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
ecs = digitalio.DigitalInOut(board.CE0)
dc = digitalio.DigitalInOut(board.D22)
rst = digitalio.DigitalInOut(board.D27)
busy = digitalio.DigitalInOut(board.D17)
srcs = None
If you're using the 1.54" Tri-Color display, run the following code to initialize the display:
© Adafruit Industries https://learn.adafruit.com/adafruit-eink-display-breakouts Page 38 of 61










