0

Rasberry PI PICO ILI9341 SPI TFT LCD Display
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Rasberry PI PICO ILI9341 SPI TFT LCD Display

by Xbizob on Thu Apr 08, 2021 8:43 pm

I can find several examples of the PI PICO running a ILI9341 SPI TFT LCD Display but they are all in micropython...

Anyone have any information on doing the same with CircuitPython???

Thank you for any help!!!

Xbizob
 
Posts: 12
Joined: Wed Mar 17, 2021 9:41 pm

Re: Rasberry PI PICO ILI9341 SPI TFT LCD Display

by tannewt on Fri Apr 09, 2021 11:26 am

Here is a guide: https://learn.adafruit.com/micropython- ... quickstart

The instructions are the same for all CircuitPython boards with displayio enabled (which the pico has.)

tannewt
 
Posts: 2428
Joined: Thu Oct 06, 2016 8:48 pm

Re: Rasberry PI PICO ILI9341 SPI TFT LCD Display

by Xbizob on Sat Apr 10, 2021 3:56 pm

Running the sample code I get...

Traceback (most recent call last):
File "<stdin>", line 20, in <module>
AttributeError: 'module' object has no attribute 'SPI'

.............................................................................................................

import board
import terminalio
import displayio
from adafruit_display_text import label
import adafruit_ili9341

# Release any resources currently in use for the displays
displayio.release_displays()

spi = board.SPI()
tft_cs = board.D13
tft_dc = board.D15

changed cs, and dc to D13 and D15 to go with the wiring diagram I found... included wiring diagram ... the error screen, and picture of my board...

Any help would be greatly appreciated!!!
Attachments
Screenshot (3).png
Screenshot (3).png (507.8 KiB) Viewed 49 times
Screenshot (1).png
Screenshot (1).png (102.95 KiB) Viewed 49 times
Screenshot (2).png
Screenshot (2).png (255.76 KiB) Viewed 49 times

Xbizob
 
Posts: 12
Joined: Wed Mar 17, 2021 9:41 pm

Re: Rasberry PI PICO ILI9341 SPI TFT LCD Display

by Xbizob on Sat Apr 10, 2021 6:45 pm

found some code that works...

https://www.instructables.com/Raspberry ... n-ILI9341/

only issue I have is editing inside thonny ...

ValueError: GP6 in use...

dc=board.GP15
rst=board.GP14
blk=board.GP2
cs=board.GP13
spi = busio.SPI(clock=board.GP6, MOSI=board.GP7, MISO=board.GP4)

Have GP6 set to clock...

it works fine... I just have to unplug the PICO, and plug it back in to edit the file...

Thank you!!!!!!!

Xbizob
 
Posts: 12
Joined: Wed Mar 17, 2021 9:41 pm

Please be positive and constructive with your questions and comments.