搭配 Jetson 使用
硬件连接
Jetson nano连接引脚对应关系
| e-Paper | Jetson Nano Developer Kit | Jetson Nano Developer Kit |
|---|---|---|
| BCM2835编码 | Board物理引脚序号 | |
| VCC | 3.3V | 3.3V |
| GND | GND | GND |
| DIN | 10(SPI0_MOSI) | 19 |
| CLK | 11(SPI0_SCK) | 23 |
| CS | 8(SPI0_CS0) | 24 |
| DC | 25 | 22 |
| RST | 17 | 11 |
| BUSY | 24 | 18 |
| PWR | 18 | 12 |
运行C语言例程
-
下载程序(已下载可跳过)
wget https://www.waveshare.net/w/upload/9/97/3in5_e-Paper_G.zipunzip 3in5_e-Paper_G.zip -d 3in5_e-Paper_Gcd 3in5_e-Paper_G/RaspberryPi_JetsonNano/ -
备用解压方式
sudo apt-get install p7zip-full7z x 3in5_e-Paper_G.zip -O./3in5_e-Paper_Gcd 3in5_e-Paper_G/RaspberryPi_JetsonNano/ -
通过 GitHub 下载程序(备用方式,已下载可跳过)
目前访问 GitHub 并不是很流畅,建议使用上面的方法从我们官网下载。
git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/E-paper_Separate_Program/3in5_e-Paper_G/RaspberryPi_JetsonNano/
-
编译程序(说明:JETSON 是指定设备为 jetson nano,不指定默认为树莓派;-j4 为使用4线程编译,数字可自行修改)
# 此时在 3in5_e-Paper_G/RaspberryPi_JetsonNano 位置cd csudo make cleansudo make JETSON -j4sudo make JETSON -j4 EPD=epd3in5g_V2# V1 版本程序编译sudo make JETSON -j4 EPD=epd3in5g -
运行程序
sudo ./epd
运行python例程
-
安装函数库
sudo apt-get updatesudo apt-get install python3-numpysudo apt-get install python3-pipsudo pip3 install Jetson.GPIO -
下载程序(已下载可跳过)
wget https://www.waveshare.net/w/upload/9/97/3in5_e-Paper_G.zipunzip 3in5_e-Paper_G.zip -d 3in5_e-Paper_Gcd 3in5_e-Paper_G/RaspberryPi_JetsonNano/ -
备用解压方式
sudo apt-get install p7zip-full7z x 3in5_e-Paper_G.zip -O./3in5_e-Paper_Gcd 3in5_e-Paper_G/RaspberryPi_JetsonNano/ -
通过 GitHub 下载程序(备用方式,已下载可跳过)
目前访问 GitHub 并不是很流畅,建议使用上面的方法从我们官网下载。
git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/E-paper_Separate_Program/3in5_e-Paper_G/RaspberryPi_JetsonNano/
-
运行程序
# 确保在 3in5_e-Paper_G/RaspberryPi_JetsonNano/ 位置cd python/examples/python3 epd_3in5g_V2_test.py# V1版本的程序运行python3 epd_3in5g_test.py