readme_EN.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*****************************************************************************
  2. * | File : Readme_EN.txt
  3. * | Author : Waveshare team
  4. * | Function : Help with use
  5. * | Info :
  6. *----------------
  7. * | This version: V1.0
  8. * | Date : 2020-08-28
  9. * | Info : Here is an English version of the documentation for your quick use.
  10. ******************************************************************************/
  11. This file is to help you use this routine.
  12. Since our OLED screens are getting more and more, it is not convenient for our maintenance, so all the OLED screen programs are made into one project.
  13. A brief description of the use of this project is here:
  14. 1. Basic information:
  15. This routine is based on the raspberry PI 4B+ development, the kernel version:
  16. Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux
  17. You can view the corresponding test routines in the examples\ of the project;
  18. 2. Pin connection:
  19. Pin connections can be viewed in \lib\waveshare_OLED\config.py and will be repeated here:
  20. SPI:
  21. OLED => RPI(BCM)
  22. VCC -> 3.3
  23. GND -> GND
  24. DIN -> 10(MOSI)
  25. CLK -> 11(SCLK)
  26. CS -> 8
  27. DC -> 25
  28. RST -> 27
  29. IIC:
  30. OLED => RPI(BCM)
  31. VCC -> 3.3
  32. GND -> GND
  33. DIN -> 2(SDA)
  34. CLK -> 3(SCL)
  35. CS -> 8
  36. DC -> 25
  37. RST -> 27
  38. 3.Installation library
  39. sudo apt-get update
  40. sudo apt-get install python-pip
  41. sudo apt-get install python-pil
  42. sudo apt-get install python-numpy
  43. sudo pip install RPi.GPIO
  44. or
  45. sudo apt-get update
  46. sudo apt-get install python3-pip
  47. sudo apt-get install python3-pil
  48. sudo apt-get install python3-numpy
  49. sudo pip3 install RPi.GPIO
  50. 4. Basic use:
  51. Since this project is a comprehensive project, you may need to read the following for use:
  52. You can view the test program in the examples\ directory.
  53. Please note which OLED you purchased.
  54. eg 1:
  55. if you bought 1.3inch OLED Module (C),you should type:
  56. sudo python OLED_1in3_c_test.py
  57. or
  58. sudo python3 OLED_1in3_c_test.py
  59. eg 2:
  60. if you bought 1.5inch RGB OLED Module,you should type:
  61. sudo python OLED_1in5_rgb_test.py
  62. or
  63. sudo python3 OLED_1in5_rgb_test.py
  64.