ILI9341 Touchscreen Error #11507
Replies: 3 comments 10 replies
-
What did you expect ? The file you linked doesn't define an |
Beta Was this translation helpful? Give feedback.
-
I'm using this module on a pico w. Any of the demo's would have shown how to setup and use. Also this link was helpful. Curt |
Beta Was this translation helpful? Give feedback.
-
For the other I have a sample script as well. It needs a font driver and files as well: XglcdFont and the Unispace font file.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using a Raspberry Pi Pico and an ili9341 touchscreen. To the codes below;
import machine
import ili9341
Set up the SPI bus
spi = machine.SPI(0, baudrate=10000000, miso=machine.Pin(16), mosi=machine.Pin(19),
sck=machine.Pin(18))
Set up the LCD display
lcd = ili9341.ILI9341(spi, 240, 320, cs=machine.Pin(17), dc=machine.Pin(20))
Clear the screen
lcd.clear()
Write "Hello World" to the screen
lcd.write("Hello World")
Display the screen
lcd.display()
i am getting this error: Traceback (most recent call last): File "", line 8, in AttributeError: 'module' object has no attribute 'ILI9341'
I downloaded the .py file in the link. https://github.com/rdagger/micropython-ili9341/blob/master/ili9341.py
Beta Was this translation helpful? Give feedback.
All reactions