readme_jetson_CN.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*****************************************************************************
  2. * | File : Readme_CN.txt
  3. * | Author : Waveshare team
  4. * | Function : Help with use
  5. * | Info :
  6. *----------------
  7. * | This version: V1.0
  8. * | Date : 2019-06-20
  9. * | Info : 在这里提供一个中文版本的使用文档,以便你的快速使用
  10. ******************************************************************************/
  11. 这个文件是帮助您使用本例程。
  12. 由于我们的墨水屏越来越多,不便于我们的维护,因此把所有的墨水屏程序做成一个工程。
  13. 在这里简略的描述本工程的使用:
  14. 1.基本信息:
  15. 本例程是基于jetson-nano-sd-r32.1-2019-03-18系统镜像而开发的,由于目前的系统是没有硬件SPI的,
  16. 目前采用模拟SPI进行开发的,因此墨水屏的刷新速度较慢;
  17. 本例程是基于Jetson Nano进行开发的,例程均在Jetson Nano上进行了验证;
  18. 本例程使用e-paper Driver HAT模块进行了验证,你可以在工程的examples\中查看对应的测试例程;
  19. 2.管脚连接:
  20. 管脚连接你可以在\lib\epdconfig.py中查看,这里也再重述一次:
  21. EPD => Jetson Nano/RPI(BCM)
  22. VCC -> 3.3
  23. GND -> GND
  24. DIN -> 10(SPI0_MOSI)
  25. CLK -> 11(SPI0_SCK)
  26. CS -> 8(SPI0_CS0)
  27. DC -> 25
  28. RST -> 17
  29. BUSY -> 24
  30. 3.安装库:
  31. sudo apt-get update
  32. sudo apt-get install python-pip
  33. sudo apt-get install python-pil
  34. sudo pip install Jetson.GPIO
  35. sudo apt-get update
  36. sudo apt-get install python3-pip
  37. sudo apt-get install python3-pil
  38. sudo pip3 install Jetson.GPIO
  39. 4.基本使用:
  40. 由于本工程是一个综合工程,对于使用而言,你可能需要阅读以下内容:
  41. 你可以在examples\目录中查看测试程序
  42. 请注意你购买的是哪一款的墨水屏。
  43. 例子1:
  44. 如果你购买的5.83inch e-paper,那么你应该执行命令:
  45. sudo python epd_5in83_test.py
  46. 例子2:
  47. 如果你购买的2.9inch e-paper (B),由于2.9寸的B型和C型是公用的驱动代码,
  48. 那么你应该执行命令:
  49. sudo python epd_2in9bc_test.py
  50. 注意:对于epd_1in54_V2_test.py和epd_2in13_V2_test.py请注意你的屏幕背面是否贴有V2标识。