Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.md 2.6 KiB

il y a 3 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # ST7735 SPI Display Toolkit
  2. Built and tested with OrangePi Zero (running Armbian) and ST7735 128x160 v1.1 and 240x320 SPI displays.
  3. ## Hardware Connections
  4. ```
  5. +-------------+-----------+
  6. | LCD pin | OPi GPIO |
  7. +-------------+-----------+
  8. | LED | 17 3.3V |
  9. | SCK / SCLK | 23 SCLK |
  10. | SDA / MOSI | 19 MOSI |
  11. | A0 / D/C | 13 |
  12. | RESET / RST | 15 |
  13. | CS | 24 CE.1 |
  14. | GND | 9 GND |
  15. | VCC | 1 3.3V |
  16. +-------------+-----------+
  17. ```
  18. ### GPIO Pins Reference
  19. ```
  20. $ gpio readall
  21. +------+-----+----------+------+---+ OPi H2 +---+------+----------+-----+------+
  22. | GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO |
  23. +------+-----+----------+------+---+----++----+---+------+----------+-----+------+
  24. | | | 3.3V | | | 1 || 2 | | | 5V | | |
  25. | 12 | 0 | SDA.0 | OFF | 0 | 3 || 4 | | | 5V | | |
  26. | 11 | 1 | SCL.0 | OFF | 0 | 5 || 6 | | | GND | | |
  27. | 6 | 2 | PWM.1 | OFF | 0 | 7 || 8 | 0 | OFF | TXD.1 | 3 | 198 |
  28. | | | GND | | | 9 || 10 | 0 | OFF | RXD.1 | 4 | 199 |
  29. | 1 | 5 | RXD.2 | OFF | 0 | 11 || 12 | 0 | OFF | PA07 | 6 | 7 |
  30. | 0 | 7 | TXD.2 | OUT | 1 | 13 || 14 | | | GND | | |
  31. | 3 | 8 | CTS.2 | OUT | 1 | 15 || 16 | 0 | OFF | SDA.1 | 9 | 19 |
  32. | | | 3.3V | | | 17 || 18 | 0 | OFF | SCK.1 | 10 | 18 |
  33. | 15 | 11 | MOSI.1 | ALT2 | 0 | 19 || 20 | | | GND | | |
  34. | 16 | 12 | MISO.1 | ALT2 | 0 | 21 || 22 | 0 | OFF | RTS.2 | 13 | 2 |
  35. | 14 | 14 | SCLK.1 | ALT2 | 0 | 23 || 24 | 0 | ALT2 | CE.1 | 15 | 13 |
  36. | | | GND | | | 25 || 26 | 0 | OFF | PA10 | 16 | 10 |
  37. +------+-----+----------+------+---+----++----+---+------+----------+-----+------+
  38. | GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO |
  39. +------+-----+----------+------+---+ OPi H2 +---+------+----------+-----+------+
  40. ```
  41. ## Building
  42. ```
  43. meson build
  44. ninja -C build
  45. ```
  46. ## Running
  47. TODO
  48. ## Resources
  49. * [orangepi-xunlong/WiringOP](https://github.com/orangepi-xunlong/WiringOP) - GPIO controlling library compatible with Raspberry Pi's WiringPi
  50. * [dhepper/font8x8](https://github.com/dhepper/font8x8) - 8x8 pixels monospaced font
  51. * [vadzimyatskevich/SSD1306](https://github.com/vadzimyatskevich/SSD1306) - Similar driver for SSD1306 OLED displays
  52. * [michal037/driver-ST7735S](https://github.com/michal037/driver-ST7735S) - ST7735 driver