To drive a touch screen it is best to use a purpose-built chip such as the XPT2046 or ADS7843. These have an SPI interface. There is an Arduino driver called Utouch for this chip, but the coordinates it returns are way out sometimes. I have a fixed version in my ARM-based TFT controller for 3D printers, source code is at [github.com].
↧