![2023-03-22_(2).png](https://cdn-learn.adafruit.com/user_assets/assets/000/000/100/large1024/2023-03-22_%282%29.png?1679484966)
wiring instructions:
gnd -> gnd
vin -> 5v
cs -> 10
dc -> 9
sck -> 13
miso -> 12
mosi -> 11
solder im1, im2, and im3.
//touch example #include <Adafruit_ILI9341.h> //tft include #include <Adafruit_FT6206.h> //ts include #include <Adafruit_GFX.h> #include <Wire.h> #include <SPI.h> //init Adafruit_ILI9341 tft(10, 9); //cs and dc Adafruit_FT6206 ts = Adafruit_FT6206(); //setup void setup() { tft.begin(); Serial.begin(9600); //bps if (!ts.begin()) { tft.fillRect(100, 100, 200, 200, ILI9341_RED); delay(500); tft.fillScreen(ILI9341_BLACK); Serial.flush(); } } bool continous = false; TS_Point lastPoint; //loop void loop() { //touch and read if (ts.touched()) { //point TS_Point p = ts.getPoint(); p.x = map(p.x, 0, 240, 240, 0); //in tft p.y = map(p.y, 0, 320, 320, 0); //Serial.print(p.x); Serial.print(", "); Serial.print(p.y); Serial.println(); if (continous) { tft.drawLine(lastPoint.x, lastPoint.y, p.x, p.y, ILI9341_WHITE); } else { tft.drawPixel(p.x, p.y, ILI9341_WHITE); } lastPoint = p; continous = true; } else { continous = false; } }