#include "Adafruit_ILI9341.h"
#define TFT_DC 9
#define TFT_CS 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(4, OUTPUT);
pinMode(8, OUTPUT);
pinMode(7, INPUT_PULLUP);
pinMode(1, INPUT);
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(4, LOW);
tft.begin();
tft.setCursor(26, 120);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Hello, TFT!");
tft.setCursor(20, 160);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(2);
tft.println("I can has colors?");
}
void loop() {
// put your main code here, to run repeatedly:
}Loading
ili9341-cap-touch
ili9341-cap-touch