#include <Adafruit_GFX.h>    // Include Adafruit graphics library
#include <Adafruit_ILI9341.h> // Include Adafruit ILI9341 library

// Pin definitions
#define TFT_CS   10
#define TFT_RST  9
#define TFT_DC   8

// Initialize ILI9341 TFT
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);

void setup() {
  // Initialize serial communication
  Serial.begin(9600);
  
  // Initialize ILI9341 display
  tft.begin();
  
  // Set text color and size
  tft.setTextColor(ILI9341_WHITE);
  tft.setTextSize(2);

  // Clear the screen
  tft.fillScreen(ILI9341_BLACK);
}

void loop() {
  // Display text
  tft.setCursor(10, 10);
  tft.println("Hello, World!");
  
  delay(1000); // Delay for 1 second
}
Loading
pi-pico-w
001Breakout
Loading
ili9341-cap-touch