How to use SPI touch screen with RPi?
Asked today
Modified today
Viewed 19 times
1
I bought a SPI TFT 2.4″ display with a resistive touchscreen from eBay (this one).
The screen is ILI9341 and works fine with Python and displays what I want. But how do I make use of the touch screen?
The PCB shows that the touch screen has got 5 pins: T_IRQ, T_DO, T_DIN, T_CS, T_CLK. From the Clock and CS pins presence I suspect that it’s a SPI touchscreen? How do I make use of it? Ideally in Python. Any pointers?
Update: FWIW the touchscreen controller seems to be labelled XPT2046 if I’m not mistaken.

EditFollowClose 1Flag
asked 9 hours ago

15166 bronze badges
- @jsotola true, thanks for the comment. It seems to be labelled XPT2046 / 2021 if that helps. – MLu 7 hours ago
- yes, it helps you … do internet search for
XPT2046 raspberry
… (2021 is probably a manufacture date stamp, 20th week of 2021) – jsotola 6 hours ago - These might help: (1) raspberrypi.stackexchange.com/questions/98549/…, (2) raspberrypi.stackexchange.com/questions/104600/… – tlfong01 1 min ago Edit
Categories: Uncategorized