#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC 2
#define TFT_CS 15
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
tft.begin();
tft.setCursor(26, 300);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Hello, TFT!");
tft.setCursor(15, 160);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(2);
tft.println("You are colorful !");
tft.fillTriangle(10, 120, 10, 150, 150, 150, ILI9341_BLUE);
tft.fillCircle(25, 105, 20, ILI9341_RED);
tft.fillRoundRect(170,130,30,20,1, ILI9341_GREEN);
}
void loop(){
}