//Screeen #include <ILI9341_kbv.h>
ILI9341_kbv my_lcd;
#define vali0 0 //TFT Touch Library
#include <XPT2046_Touchscreen.h>
XPT2046_Touchscreen my_tft(44,52,50,51,46);
//tcs,tclk (sharing with LCD),tdout (MISO) ,tdin (MOSI) ,tirq void setup() { my_lcd.begin();
my_lcd.setRotation(1);
// Landscape my_lcd.fillScreen(TFT_PINK);
// set color iitial screen //
Define the values for tft ( rotation,With,Height) my_tft.TP_Init(1,240,320);
} void loop(){ my_tft.TP_Scan(0);
if (my_tft.TP_Get_State()&TP_PRES_DOWN) { my_lcd.fillScreen(TFT_RED);
// set color iitial screen delay(1000);
my_lcd.fillScreen(TFT_PINK);
// set color iitial screen } }