-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Hi,
I'm using a Raspbery PI 3 modelB rev 1.2 OS64bits
and a TFT 480x320 3.5'' ILI9488 65Kcol
I installed :
pip3 install adafruit-circuitpython-lis3dh --break-package-system
pip3 install adafruit-circuitpython-rgb-display --break-package-system
SPI enabled
with
connections :
Vcc Pin 17 3.3V
Gnd Pin 6
CS Pin 29 / GPIO5
Reset Pin 22 / GPIO25
D/C Pin 18 / GPIO24
SDI(MOSI) Pin 19 / GPIO10
SCK Pin 23 / GPIO23
LED(BL) Pin 1 3.3V
SDO(MISO) Pin 21 / GPIO 9
when I run :
python test.py
import time
import busio
import digitalio
from board import SCK, MOSI, MISO, D2, D3
from adafruit_rgb_display import color565
import adafruit_rgb_display.ili9341 as ili9341
# Configuration for CS and DC pins:
CS_PIN = D2
DC_PIN = D3
# Setup SPI bus using hardware SPI:
spi = busio.SPI(clock=SCK, MOSI=MOSI, MISO=MISO)
# Create the ILI9341 display:
display = ili9341.ILI9341(spi, cs=digitalio.DigitalInOut(CS_PIN),
dc=digitalio.DigitalInOut(DC_PIN))
# Main loop:
while True:
# Clear the display
display.fill(0)
# Draw a red pixel in the center.
display.pixel(120, 160, color565(255, 0, 0))
# Pause 2 seconds.
time.sleep(2)
# Clear the screen blue.
display.fill(color565(0, 0, 255))
# Pause 2 seconds.
time.sleep(2)
nothing happens, i.e no error & white screen
Metadata
Metadata
Assignees
Labels
No labels