I followed the tutorial but after starting the sketch the touch is not working.
After changing the pins:
YP -> A3
XM -> A2
YM -> 9
XP -> 8
I got touch functionality. But it does not work in the right way. When I touch a button field I do not get the right number ot function. The coordinates are not working.
I use a ILI9341 touch TFT with 240 x 320 pixel. Maybe the calibration of my tft is not the same of the tutorial.
I followed the tutorial but after starting the sketch the touch is not working.
After changing the pins:
YP -> A3
XM -> A2
YM -> 9
XP -> 8
I got touch functionality. But it does not work in the right way. When I touch a button field I do not get the right number ot function. The coordinates are not working.
I use a ILI9341 touch TFT with 240 x 320 pixel. Maybe the calibration of my tft is not the same of the tutorial.
What means:
/*____Calibrate TFT LCD_____*/
#define TS_MINX 125
#define TS_MINY 85
#define TS_MAXX 965
#define TS_MAXY 905
Why is: X = p.y; Y = p.x;
Who can help me???