#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST -1
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
void setup() {
Serial.begin(9600);
tft.begin();
tft.setRotation(3); // Adjust the rotation if needed
tft.setTextSize(2);
tft.setTextColor(ILI9341_WHITE);
}
void loop() {
tft.fillScreen(ILI9341_BLACK); // Clear the screen
// Display text
tft.setCursor(10, 10);
tft.print("Hello, Arvind!");
delay(2000); // Delay for 2 seconds
}