Sunrise X3 Pi
硬件连接
连接旭日派的时候,可以直接将板子插到旭日派的 40PIN 排针上去,注意对好引脚。
如果是选择用 8PIN 排线连接的话,请参考下方的引脚对应表格:
Sunrise X3 Pi连接引脚对应关系
| e-Paper | Sunrise X3 Pi | 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
运行python程序
-
对应的库在函数中已安装完成,如果不小心卸载,请使用下面的命令进行安装
sudo apt-get updatesudo apt-get install python-pipsudo apt-get install python-pilsudo apt-get install python-numpysudo pip install Hobot.GPIOsudo pip install spidev -
下载程序(已下载可跳过)
wget https://www.waveshare.net/w/upload/7/71/E-Paper_code.zipunzip E-Paper_code.zip -d e-Papercd e-Paper/RaspberryPi_JetsonNano/ -
备用解压方式
sudo apt-get install p7zip-full7z x E-Paper_code.zip -O./e-Papercd e-Paper/RaspberryPi_JetsonNano/ -
通过 GitHub 下载程序(备用方式,已下载可跳过)
目前访问 GitHub 并不是很流畅,建议使用上面的方法从我们官网下载。
git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/RaspberryPi_JetsonNano/
-
运行程序
# 确保在 e-Paper/RaspberryPi_JetsonNano/ 位置cd python/examples/python3 epd_2in66b_test.py