模板: E-paper for jetsonnano use 2in9g

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

Jetson Nano

硬件连接

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

Jetson nano连接引脚对应关系
e-Paper 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

运行C语言例程

  • 下载程序(已下载可跳过)
wget https://www.waveshare.net/w/upload/5/59/2in9_e-Paper_G.zip
unzip 2in9_e-Paper_G.zip -d 2in9_e-Paper_G
cd 2in9_e-Paper_G/RaspberryPi_JetsonNano/
  • 备用解压方式
sudo apt-get install p7zip-full
7z x 2in9_e-Paper_G.zip -O./2in9_e-Paper_G
cd 2in9_e-Paper_G/RaspberryPi_JetsonNano/
  • 通过 GitHub 下载程序(备用方式,已下载可跳过)

目前访问 GitHub 并不是很流畅,建议使用上面的方法从我们官网下载。

git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/E-paper_Separate_Program/2in9_e-Paper_G/RaspberryPi_JetsonNano/
  • 编译程序(说明:JETSON为指定设备,不指定默认为RPI;-j4 为使用4线程编译,数字可自行修改)
# 此时在 2in9_e-Paper_G/RaspberryPi_JetsonNano 位置
cd c
sudo make clean
sudo make JETSON -j4
  • 运行程序
sudo ./epd

运行python例程

  • 安装函数库
sudo apt-get update
sudo apt-get install python3-numpy
sudo apt-get install python3-pip
sudo pip3 install Jetson.GPIO
  • 下载程序(已下载可跳过)
wget https://www.waveshare.net/w/upload/5/59/2in9_e-Paper_G.zip
unzip 2in9_e-Paper_G.zip -d 2in9_e-Paper_G
cd 2in9_e-Paper_G/RaspberryPi_JetsonNano/
  • 备用解压方式
sudo apt-get install p7zip-full
7z x 2in9_e-Paper_G.zip -O./2in9_e-Paper_G
cd 2in9_e-Paper_G/RaspberryPi_JetsonNano/
  • 通过 GitHub 下载程序(备用方式,已下载可跳过)

目前访问 GitHub 并不是很流畅,建议使用上面的方法从我们官网下载。

git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/E-paper_Separate_Program/2in9_e-Paper_G/RaspberryPi_JetsonNano/
  • 运行程序
# 确保在 2in9_e-Paper_G/RaspberryPi_JetsonNano/ 位置
cd python/examples/
python3 epd_2in9g_test.py