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() {
}