Changes

Jump to: navigation, search

Waveshare LCDs

936 bytes added, 1 September
no edit summary
* adafruit-circuitpython-st7789
* Pillow
 
You may also need to run "sudo modprobe spidev" to get the spidev driver loaded.
The example code should draw some shapes every 2 seconds, followed by the Waveshare logo, then a Yuan dynasty poem, and lastly a series of images.
 
== Testing with 2 LCDs ==
Ideally, we run both screens off the same SPI line and use the built-in chip-select pins on the Jetson. However, based on current testing, the Jetson-IO CS functionality does not work. If a device is connected to CS1 and CS0, CS0 will always remain low. The code in the repository assumes you use both spi lines (SPI0 and SPI2, so spidev0.0 and spidev2.0 respectively).
 
Wire up the second display as such:
 
{| class="wikitable"
|-
! Function !! Jetson Pin !! BCM Pin
|-
| 3v3 || 17 || 3v3
|-
| GND || 9 || GND
|-
| DIN/MOSI || 37 || D26 (Automatically selected by Jetson-GPIO)
|-
| SCK || 13 || D27 (Automatically selected)
|-
| CS || 18 || D24 (Automatically selected)
|-
| DC || 36 || D16
|-
| RST || 38 || D20
|-
| BL || 33 || D13
|}
 
The code in the repository should already specify these pins for the second screen.
[[Category:Electronics]]
[[Category:Hardware]]
15
edits

Navigation menu