 
  ****************************************************/
 
-#include <Adafruit_GFX.h>
-#include <Adafruit_TFTLCD.h>
+#include <SPI.h>
+#include "ILI9341_t3.h"
 #include <i2c_t3.h>      
 #include <Adafruit_FT6206.h>
 

  analogWrite(LITE, (int)(1000));
  //Serial.println(digitalRead(IRQ));
  // Wait for a touch
  if (digitalRead(IRQ) == HIGH) {
    return;
  }
  touchDetected();  
}

void touchDetected(){
  // Retrieve a point  
  POINT p = ctp.getPoint();

  // flip it around to match the screen.
  // p.x = map(p.x, 0, 240, 240, 0);
  // p.y = map(p.y, 0, 320, 320, 0);

  // Print out the remapped (rotated) coordinates
  Serial.print("("); Serial.print(p.x);
