#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include <Fonts/FreeSerif9pt7b.h>
#define TFT_DC 9
#define TFT_CS 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// Color definitions
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
void setup() {
Serial.begin(9600);
tft.begin();
}
void loop() {
tft.setCursor(30, 130);
tft.setTextSize(2);
tft.setTextColor(ILI9341_YELLOW);
tft.println("Hello mom, l iloveyou!.");
tft.drawRoundRect(2, 110, 231, 30, 10, ILI9341_WHITE);
tft.fillScreen(ILI9341_BLACK);
delay(100);
}Loading
ili9341-cap-touch
ili9341-cap-touch