This was extracted from my ili9341_t3n examples. Note: I have not run
it in awhile on the default IO pins. I tested it earlier on my
flexiboard.
Which I have configured for non-standard IO pins.
Also Someone might want to play around with the calibration numbers for
the touch screen. It currently has values I found on my first screen,
but someone may want to more generalize
Thought I would upload a version of my modified touchpaint program that uses the XPT2046 touch screen https://www.pjrc.com/store/display_ili9341_touch.html
This was extracted from my ili9341_t3n examples. Note: I have not run it in awhile on the default IO pins. I tested it earlier on my flexiboard. Which I have configured for non-standard IO pins.
Also Someone might want to play around with the calibration numbers for the touch screen. It currently has values I found on my first screen, but someone may want to more generalize