2.8 TFT SPI with Touch
Posted: Wed Mar 18, 2020 8:41 am
Hi, i just buy 2.8 TFT screen that have touch screen.
I use SPI, but im dont know which library i should use for my touch screen and where i shoul connect pins.
I use SPI, but im dont know which library i should use for my touch screen and where i shoul connect pins.
Code: Select all
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
Adafruit_ILI9341 tft = Adafruit_ILI9341(2, 4, 21, 18, 15);
void setup() {
Serial.begin(115200);
Serial.println("ILI9341 Test!");
tft.begin();
tft.fillScreen(ILI9341_BLACK);
}
void loop() {
}