Seeed XIAO RP2040 & ILI9341 Touch not working #2909
-
** Sorry if this violate etiquette here but I wasn't sure how to continue a closed thread. I had asked about this in a previous thread in August and after Bodmer kindly replied, I had to attend to other projects. Apparently I also am not getting email notifications about thread replies. Again - sorry for bringing this up again. I'll copy my question below and reference Bodmer's reply - as I'm still not able to get this to work. The ILI9341 display works fine, but I can't get the touch screen working. I'm currently using Test_Touch_Controller.ino and the Serial monitor shows all 3 parameters = "0". On a o'scope there are reasonable signals on the pins and I even get outputs on the MISO line that appear to have data changing as I move my finger / stylus. --- Bodmer reply ---- https://github.com/Bodmer/TFT_eSPI/blob/master/User_Setups/Setup61_RP2040_ILI9341_PIO_SPI.h#L7-L11 Make sure line 11 is commented out.I've done this in Setup61 as suggested, but I don't know if this means I'm using PIO or not. I've also tried Setup60. In most of my attempts at this, I get "TOUCH_CS not defined". I've tried manually defining it based on the pin I'm using. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
-- SOLVED -- I never #defined the MISO pin - hence no input from the XPT2046 touch chip. I added a new file to the User_Setups folder "Setup63_RP2040_ILI9341_TOUCH_SPI.h", and set "User_Setup.h" to point to this file. This is for a Seeed Xiao RP2040 module. Here's what I used in the Setup63 file: Hope this helps someone else. |
Beta Was this translation helpful? Give feedback.
-- SOLVED --
It took me a while to grok how the setup files work (I new to this), but it's fixed.
I never #defined the MISO pin - hence no input from the XPT2046 touch chip.
I added a new file to the User_Setups folder "Setup63_RP2040_ILI9341_TOUCH_SPI.h", and set "User_Setup.h" to point to this file. This is for a Seeed Xiao RP2040 module.
Here's what I used in the Setup63 file:
// For RP2040 - use pin numbers in the form PIN_Dx where Dx is the RP2040 pin designation
#define TFT_MISO D9
#define TFT_MOSI D10
#define TFT_SCLK D8
#define TFT_CS D7 // Chip select control pin
#define TFT_DC D6 // Data Command control pin
#define TFT_RST D5 // Reset pin (could connect to RST pin
#define TOUCH_…