If the board you get is the HAT version like 2.13inch e-Paper HAT, you can directly attach it on the 40PIN GPIO of Raspberry Pi. Or you can wire ti to Raspberry Pi with 8PIN cable.
Connect to Raspberry Pi
sudo raspi-config Choose Interfacing Options -> SPI -> Yes to enable SPI interface
sudo apt-get install wiringpi #For Pi 4, you need to update it: cd /tmp wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb gpio -v #You will get 2.52 information if you install it correctly
# download the latest version of the library, say bcm2835-1.xx.tar.gz, then: tar zxvf bcm2835-1.xx.tar.gz cd bcm2835-1.xx ./configure make sudo make check sudo make install
#python2 sudo apt-get update sudo apt-get install python-pip sudo apt-get install python-pil sudo apt-get install python-numpy sudo pip install RPi.GPIO sudo pip install spidev #python3 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
sudo git clone https://github.com/waveshare/e-Paper cd e-Paper/RaspberryPi\&JetsonNano/
cd python/examples # python2 sudo python xxx.py # python3 sudo python3 xxx.py
sudo pigpiod pi@raspberrypi:~ $ pigs spio 0 50000 0 0 pi@raspberrypi:~ $ pigs spix 0 10 20 30 40 50 5 10 20 30 40 50 pi@raspberrypi:~ $ pigs spix 0 10 20 30 40 50 5 10 20 30 40 50 pi@raspberrypi:~ $ pigs spix 0 10 20 30 40 50 5 0 0 0 0 0 pi@raspberrypi:~ $ pigs spix 0 10 20 30 40 50 5 10 20 30 40 50
If the pins are connected, it returns the same result as passed in the command, if the disconnect get zeros. Is this a compiled application with an error or missing rights?