The screen should arrive with a wired plug. Properly orient the plug and carefully but forcefully plug it in to the module. Attach the module wires to the Zero pins listed above. The wire colors may be subject to change, so always match the label on the module to the corresponding Zero connection.

The following installation directions are copied from this webpage.

Turn SPI on

sudo raspi-config

Interface Options > SPI > Yes

Install BCM2835 libraries

wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gztar zxvf bcm2835-1.60.tar.gz
cd bcm2835-1.60/
sudo ./configure
sudo make
sudo make check
sudo make install

Install WiringPi libraries

sudo apt-get install wiringpi
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v

Install Python3 libraries

sudo apt-get update
sudo apt-get install python3-pip
sudo apt-get install python3-pil
sudo apt-get install python3-numpy
sudo pip3 install RPi.GPIO
sudo pip3 install spidev

Download Demos

sudo git clone https://github.com/waveshare/e-Paper

Test

cd ~/bcm2835-1.60/e-Paper/RaspberryPi_JetsonNano
cd python/examples
sudo python3 epd_4in2_test.py

If everything went well you should see multiple test screens display one after another.

For easier access I copied some of these files to the home directory.

cd ~/bcm2835-1.60/e-Paper/RaspberryPi_JetsonNano/python
cp -r pic ~/pic
cp -r lib ~/lib

Leave a Reply