2.9英寸墨水屏
2.9inch e-Paper Module Manual
说明
各项参数
产品资料
Raspberry Pi连接
- 使用8PIN排线连接,参考以下表格:
- 接着开启SPI接口,重启树莓派
检查 /boot/config.txt 文件,是否将'dtparam=spi=on'内容写入,同时确保SPI没有被其他设备占用。
运行C语言例程
安装lg库
wget https://github.com/joan2937/lg/archive/master.zip
unzip master.zip
cd lg-master
make
sudo make install安装WiringPi(可选)
git clone https://github.com/WiringPi/WiringPi
cd WiringPi
./build
gpio -v下载程序
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 c
sudo make clean
sudo make -j4 EPD=epd2in9V2
sudo ./epd
运行Python例程
安装函数库
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 spidev安装gpiozero库,系统默认已经安装
sudo apt-get update
# python3
sudo apt install python3-gpiozero下载程序与运行
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/
# 确保在 e-Paper/RaspberryPi_JetsonNano/ 位置
cd python/examples/
python3 epd_2in9_V2_test.py
评论已关闭