Wiring the HiLetgo ILI9341 to work with Adafruit Circuit Python
Posted: Sat Feb 22, 2020 9:58 pm
Greetings,
Here's the environment:
Pi 3B+ Rev 1.3
Buster Desktop (latest stable)
Python 3.7.3
RPi.GPIO==0.7.0
Pillow==5.4.1
Adafruit-Blinka 4.0.0
adafruit-circuitpython-busdevice 4.2.1
adafruit-circuitpython-rgb-display 3.8.9
Adafruit-GPIO 1.0.3
Adafruit-ILI9341 1.5.1
Adafruit-PlatformDetect 2.2.0
Adafruit-PureIO 1.0.4
Here is how I wired it, according to the youtube video which dealt with the same ili9341 board (I can't figure out how to make the editor preserve tabs so, the numbers between the - - s are the pin numbers (not GPIO) for the Raspberry Pi):
https://www.youtube.com/watch?v=I0TMbUpa4ig
scripts from the examples, both of which worked.
Both scripts begin with this for modules, wiring (?) and initialization:
so, one would presume, the references in these examples are to GPIO numbering and that's
why these scripts worked.
I would like to learn the wiring configuration that would work with the Adafruit CircuitPython
resources. Where do I go in the libraries / modules to find out the wiring that those
resources are written for, for this ILI9341 board?
Thanks for any help.
Here's the environment:
Pi 3B+ Rev 1.3
Buster Desktop (latest stable)
Python 3.7.3
RPi.GPIO==0.7.0
Pillow==5.4.1
Adafruit-Blinka 4.0.0
adafruit-circuitpython-busdevice 4.2.1
adafruit-circuitpython-rgb-display 3.8.9
Adafruit-GPIO 1.0.3
Adafruit-ILI9341 1.5.1
Adafruit-PlatformDetect 2.2.0
Adafruit-PureIO 1.0.4
Here is how I wired it, according to the youtube video which dealt with the same ili9341 board (I can't figure out how to make the editor preserve tabs so, the numbers between the - - s are the pin numbers (not GPIO) for the Raspberry Pi):
https://www.youtube.com/watch?v=I0TMbUpa4ig
Cloned the Adafruit_Python_ILI9341 git repository and ran the image.py and shapes.pyHiLetgo Board RPi
Vin -17- 3.3V
GND -14- GND
CLK -23- SLCK
MOSI -19- MOSI
CS -24- CE0
D/C -12- GPIO18 (can be changed)
RST -16- GPIO23 (can be changed)
MISO -21- MISO
LED - 2- 5V
scripts from the examples, both of which worked.
Both scripts begin with this for modules, wiring (?) and initialization:
Code: Select all
from PIL import Image
import Adafruit_ILI9341 as TFT
import Adafruit_GPIO as GPIO
import Adafruit_GPIO.SPI as SPI
# Raspberry Pi configuration.
DC = 18
RST = 23
SPI_PORT = 0
SPI_DEVICE = 0
# Create TFT LCD display class.
disp = TFT.ILI9341(DC, rst=RST, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE, max_speed_hz=64000000))why these scripts worked.
I would like to learn the wiring configuration that would work with the Adafruit CircuitPython
resources. Where do I go in the libraries / modules to find out the wiring that those
resources are written for, for this ILI9341 board?
Thanks for any help.