readme_rpi_CN.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. 本例程是基于2019-04-08-raspbian-stretch系统镜像而开发的,
  16. 本例程均在Raspberry Pi 3B+上进行了验证;
  17. 本例程使用e-paper Driver HAT模块进行了验证,你可以在工程的examples\中查看对应的测试例程;
  18. 2.管脚连接:
  19. 管脚连接你可以在\lib\epdconfig.py中查看,这里也再重述一次:
  20. EPD => Jetson Nano/RPI(BCM)
  21. VCC -> 3.3
  22. GND -> GND
  23. DIN -> 10(SPI0_MOSI)
  24. CLK -> 11(SPI0_SCK)
  25. CS -> 8(SPI0_CS0)
  26. DC -> 25
  27. RST -> 17
  28. BUSY -> 24
  29. 3.安装库:
  30. sudo apt-get update
  31. sudo apt-get install python-pip
  32. sudo apt-get install python-pil
  33. sudo pip install RPi.GPIO
  34. sudo apt-get update
  35. sudo apt-get install python3-pip
  36. sudo apt-get install python3-pil
  37. sudo pip3 install RPi.GPIO
  38. 4.基本使用:
  39. 由于本工程是一个综合工程,对于使用而言,你可能需要阅读以下内容:
  40. 你可以在examples\目录中查看测试程序
  41. 请注意你购买的是哪一款的墨水屏。
  42. 例子1:
  43. 如果你购买的5.83inch e-paper,那么你应该执行命令:
  44. sudo python epd_5in83_test.py
  45. 例子2:
  46. 如果你购买的2.9inch e-paper (B),由于2.9寸的B型和C型是公用的驱动代码,
  47. 那么你应该执行命令:
  48. sudo python epd_2in9bc_test.py
  49. 注意:对于epd_1in54_V2_test.py和epd_2in13_V2_test.py请注意你的屏幕背面是否贴有V2标识。