Skip to main content

Prerequisites

The following tools and libraries are required to build or run any component of the einky project.

Hardware

ItemSpecNotes
Raspberry Pi Zero 2WThe target platform
MicroSD card8 GB minimumHolds the OS and games
GooDisplay GDEM0397T81P3.97" SPI e-ink panelThe display
Li-Ion battery5000 mAh @ 5V 3APowers the Pi
7× GPIO buttonsD-pad + 3 action buttons
USB-C cablePower and data transfer

Software

ToolVersionPurpose
Python3.10+Launcher, frame processor, input handler
PillowLatestFrame dithering and resize
numpyLatestNumerical operations in frame processing
XvfbAnyVirtual framebuffer for headless rendering
mesa-utils / libgl1-mesa-driAnySoftware OpenGL required by the Ren'Py SDK
Ren'Py SDK8.x (vanilla)Installed by meta/scripts/install_sdk.sh; not modified
GCCAnyCompiling C modules and the SPI driver
pi-genLatestOS image build (optional, for image builds)

Installing dependencies on Raspbian

sudo apt-get update
sudo apt-get install -y \
python3 python3-pip \
xvfb mesa-utils libgl1-mesa-dri \
gcc build-essential

pip3 install pillow numpy