RPi PicoW and ILI9341+XPT2046 #2230
Replies: 4 comments 4 replies
-
A touch controller is not supported when a PIO based SPI interface is used. The Touch controller is a SPI device and therefore must be wired to the processor SPI pins and a chip select pin allocated. Example connections:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt reply. Roberto |
Beta Was this translation helpful? Give feedback.
-
Thanks, it worked...but...some small "artifacts" appeared on the screen like black lines on coloured area or font chars not drawn correctly or incomplete. Roberto |
Beta Was this translation helpful? Give feedback.
-
I've set it at 20MHz, the rendering speed is worst but still acceptable...I will try to increase the frequency gradually until I found the reliable speed. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I bought the display in the subject, I'm using it with a RPi PicoW.
That display is equipped with a touchscreen controller based on a XPT2046 and a SD reader.
I was able to setup the ILI9341 correctly using the "Setup61_RP2040_ILI9341_PIO_SPI.h", I connected the pins as follows:
#define TFT_MISO 5 // MISO is not used or supported
#define TFT_MOSI 2
#define TFT_SCLK 3
#define TFT_CS 0 // Chip select control pin
#define TFT_DC 1 // Data Command control pin
#define TFT_RST 4 // Reset pin (could connect to Arduino RESET pin)
#define TFT_BL 6 // Optional LED back-light control pin
#define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW)
I control the GPIO6 (backlight) through software.
All the "graphics" is working very good but I would like to use the touch feature.
I noticed that there is a "Setup60_RP2040_ILI9341.h" with
#define TOUCH_CS 16 // Chip select pin (T_CS) of touch screen
that I connected to GPIO16.
I modified the "User_Setup_Select.h" including the file above but when I compile the modified sketch the display appears filled with white and nothing happens, if I revert to the "Setup61..." everything works.
What am I doing wrong?
The other "touch pins" labelled on the PCB as T_IRQ, T_DO, T_DIN, T_CLK where must be connected?
Thanks you, regards.
Roberto
Beta Was this translation helpful? Give feedback.
All reactions