跳到主要内容

搭配 Jetson 使用

硬件连接​

使用 8PIN 排线连接,请参考下方的引脚对应表格:

Jetson nano连接引脚对应关系

e-PaperJetson Nano Developer KitJetson Nano Developer Kit
BCM2835编码Board物理引脚序号
VCC3.3V3.3V
GNDGNDGND
DIN10(SPI0_MOSI)19
CLK11(SPI0_SCK23
CS8(SPI0_CS0)24
DC2522
RST1711
BUSY2418

运行C语言例程​

  • 下载程序(已下载可跳过)

    wget https://www.waveshare.net/w/upload/6/6b/1in54_e-Paper_G.zip
    unzip 1in54_e-Paper_G.zip -d 1in54_e-Paper_G
    cd 1in54_e-Paper_G/RaspberryPi_JetsonNano/
  • 备用解压方式

    sudo apt-get install p7zip-full
    7z x 1in54_e-Paper_G.zip -O./1in54_e-Paper_G
    cd 1in54_e-Paper_G/RaspberryPi_JetsonNano/
  • 通过 GitHub 下载程序(备用方式,已下载可跳过)

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

git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/E-paper_Separate_Program/1in54_e-Paper_G/RaspberryPi_JetsonNano/
  • 编译程序(说明:JETSON 是指定设备为 jetson nano,不指定默认为树莓派;-j4 为使用4线程编译,数字可自行修改)

    # 此时在 1in54_e-Paper_G/RaspberryPi_JetsonNano 位置
    cd c
    sudo make clean
    sudo make JETSON -j4
    sudo make JETSON -j4 EPD=epd1in54g_V2
    # V1 版本程序编译
    sudo make JETSON -j4 EPD=epd1in54g
  • 运行程序

    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/6/6b/1in54_e-Paper_G.zip
    unzip 1in54_e-Paper_G.zip -d 1in54_e-Paper_G
    cd 1in54_e-Paper_G/RaspberryPi_JetsonNano/
  • 备用解压方式

    sudo apt-get install p7zip-full
    7z x 1in54_e-Paper_G.zip -O./1in54_e-Paper_G
    cd 1in54_e-Paper_G/RaspberryPi_JetsonNano/
  • 通过 GitHub 下载程序(备用方式,已下载可跳过)

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

git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/E-paper_Separate_Program/1in54_e-Paper_G/RaspberryPi_JetsonNano/
  • 运行程序

    # 确保在 1in54_e-Paper_G/RaspberryPi_JetsonNano/ 位置
    cd python/examples/
    python3 epd_1in54g_V2_test.py
    # V1版本的程序运行
    python3 epd_1in54g_test.py