3.2 tft lcd shield for arduino mega 2560 made in china
Begin by carefully starting the rear connector of the TFT shield onto the Arduino Mega. Go slowly and ensure that all pins are inserted correctly and are straight.
In order to use 3.2″ TFT lcd Shield , We must have the libraries. So you can download (UTFT Library) and (URTouch Library) install the library by extracting that zipped file in the library folder as shown below.
I puzzled some hours with exactly the same hardware setup and made a quick & dirty, but successfully test script, combining LCD, Touch and SD Card Features.
I used a logic analyser to review the Texas Instrument chip used for the screen, this showed the best option seemed to be to attach the IRQ to a pin on arduino as an ege triggered interrupt. rather than use the polll techniues and read while low.
The UTouch Library solution is fair, but holding the pointer still whilst sampling for a series of locations I find difficult, my customers founmd impossible.
Rewrote the calibration to cycle defined points round screen to acieve am average Y for TOP, BOTTOM and average x for LEFT, RIGHT with that and some simple maths can scale any touch sample read to be position on screen