epaper
Inhaltsverzeichnis
e-Ink - ePaper 2.13 Inch Screen
General instruction
- See also in this wiki: E-Ink Display
- Data sheet: see programming/…
- Overview of all GPIO connections Sensor Connection Overview
Hardware connection
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
Pi Configuration - Software
- wiringPi
- BCM2835 (source: http://www.airspayce.com/mikem/bcm2835/)
- python
- example code
WiringPi
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
BCM2835
- Downloadpath https://www.airspayce.com/mikem/bcm2835/
- Further information http://groups.google.com/group/bcm2835
# 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
Python
#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
Examples
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
Check Configuration and setup
SPI
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?
epaper.txt · Zuletzt geändert: von 127.0.0.1
