Show a simple screen on e-paper display during boot of a systemd system
Select one or both features to run:
e-paper
enables the Waveshare 2.13" e-paper displayemulator
uses the embedded simulator to show the screen in a window
cargo run --release --no-default-features --features emulator -- emulator
or on a device with the e-paper display:
cargo run --release --no-default-features --features e-paper -- e-paper
For e-paper you need access to /dev/spidev0.0
. You may need to run as root: sudo target/release/epd-bootscreen e-paper
On a Raspberry Pi Zero, I've added the epd-bootscreen.server
to /lib/systemd/system
and enabled the service using
sudo systemctl enable epd-bootscreen
This scripts requires an executable in /home/pi/epd-bootscreen/
but you can change this to your liking.
Please note that epd-bootscreen needs access to /dev/spidev0.0
. It seems the earliest that this device is available is at the sysinit
target. I'd like to find out if replacing spidev
can change this.