Bodmer / TFT_Touch

Arduino touch screen library for XPT2046
31 stars 13 forks source link

TFT_Touch

Arduino touch screen library for XPT2046

This library has been tested on a 2.4" TFT screen that uses the ILI9341 display driver and XPT2046 touch controller.

These displays are available at low cost on eBay and AliExpress.

The library includes three sketches:

* TFT_Touch_Calibrate_v2: to calibrate and test the screen
* TFT_Touch_Draw_2-4    : a simple paint program
* TFT_Touch_Raw         : a touch screen test sketch (Serial Monitor output only)

To make things really easy the calibration sketch reports the setup() calibration code to use in your sketch via a serial port message.

The library could be used with any graphics library but the examples use this one:

https://github.com/Bodmer/TFT_ILI9341