模板: E-paper for SunriseX3 use 1in64g

来自Waveshare Wiki
跳转至: 导航搜索

Sunrise X3 Pi

硬件连接

请参考下方的引脚对应表格:

Sunrise X3 Pi连接引脚对应关系
e-Paper Sunrise X3 Pi
BCM编码 Board物理引脚序号
VCC 3.3V 3.3V
GND GND GND
DIN MOSI 19
CLK SCLK 23
CS CE0 24
DC 25 22
RST 17 11
BUSY 24 18

开启SPI

  • SPI是默认开启的,如果不小心关闭请按照以下方法进行开启
  • 输入命令 : sudo srpi-config

Sunrise X3 Pi SPI E-paper-0.jpg
Sunrise X3 Pi SPI E-paper-1.jpg
Sunrise X3 Pi SPI E-paper-2.jpg

运行python程序

  • 打开树莓派终端,执行:
sudo apt-get install p7zip-full
wget  https://www.waveshare.net/w/upload/3/39/E-Paper_code.7z
7z x E-Paper_code.7z -O./e-Paper
cd e-Paper/RaspberryPi_JetsonNano/
  • 对应的库在函数中已安装完成,如果不小心卸载,请使用下面的命令进行安装
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 Hobot.GPIO
sudo pip install spidev
  • 下载程序(已下载可跳过)
wget https://www.waveshare.net/w/upload/7/71/E-Paper_code.zip
unzip E-Paper_code.zip -d e-Paper
cd e-Paper/RaspberryPi_JetsonNano/
  • 备用解压方式
sudo apt-get install p7zip-full
7z x E-Paper_code.zip -O./e-Paper
cd e-Paper/RaspberryPi_JetsonNano/
  • 运行程序
# 确保在 e-Paper/RaspberryPi_JetsonNano/ 位置
cd python/examples/
python3 epd_1in64g_test.py