#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
// Define pin connections
#define TFT_CS 5
#define TFT_RST 17
#define TFT_DC 16
// Create an instance of the display
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
void setup() {
// Initialize the display
tft.begin();
tft.setRotation(3);
tft.fillScreen(ILI9341_BLACK);
tft.fillRect(5,5,200,100, 0x00ff);
}
void loop() {
// Nothing to do here
}