跳到主要内容

搭配 Jetson 使用

硬件连接​

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

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/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/
  • 编译程序(说明:JETSON为指定设备,不指定默认为RPI;-j4 为使用4线程编译,数字可自行修改;EPD=epd3in0g为指定一个宏定义,epd3in0g对应主函数中的测试程序)

    # 此时在 e-Paper/RaspberryPi_JetsonNano 位置
    cd c
    sudo make clean
    sudo make JETSON -j4 EPD=epd3in0g
  • 运行程序

    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/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 python/examples/
    python3 epd_3in0g_test.py