Touch Screen driver - XPT2046

I am working with an ILI9341 based Touch Screen display, and I have the display part working very nicely. But I can’t find a Photon compatible driver for the resistive touch screen component.
The touch screen is completely independent from the display part, and both are SPI driven.
I am using Hardware SPI for the display.
The resistive touch controller seems quite common and the XPT2046 can replace ADS7843E TSC2046 ADS7843 ADS7846 RSM1.

FWIW, the display units are very nice. They are SPI 3 or 4 wire, 8 bit or 16 bit parallel, touch screen, SD card slot, extra memory available and accept font chips:

Does anyone know of a successful implementation on the Photon for one of these touch chips?

1 Like

@Awake, you could adapt this library:



It looks like a fairly simple library. I’ll give it a try by just running it alone and printing coordinates to the serial port.

1 Like

Hey @peekay123, what other options are there for a good touch screen for the particle photon or Argon? (preferably Argon)

What size you need?

Adafruit has a few.

Hey @RWB

Something around 5 inch? Are they compatible with the Argon?

One more thing, i will be acquiring the data for the screen over UART, so would need the corresponding pins for UART to be available.

@peekay123 Any recommendations?

@muneebr1, if a 2.6" touch screen works, take a look at Digole displays. They work over UART, I2C or SPI. They have an onboard PIC controller making them “intelligent” and they have online tools for converting bitmaps, and they have a display emulator for designing screens. I used one of these displays for a quick proof of concept for a client. Another approach I haven’t tried but would like to are FT8xx based displays. These are sophisticated display-list driven graphic processors. A good example is the Gameduino 3 or the Riverdi display units.