#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <SPI.h>
#define tft_SLCK 18
#define TFT_CS 15
#define TFT_DC 2
#define TFT_RST 4
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
void setup() {
// Inicializar la pantalla
tft.begin();
tft.setRotation(0); // Ajustar la orientación
tft.fillScreen(ILI9341_WHITE); // Fondo blanco
tft.fillCircle(125, 65, 65, ILI9341_BLUE);
tft.fillRect(40, 65, 160, 70, ILI9341_WHITE);
tft.fillRect(120, 65, 5, 140, ILI9341_MAROON);
tft.fillCircle(135, 205, 15, ILI9341_MAROON);
tft.fillCircle(135, 205, 10, ILI9341_WHITE);
tft.fillRect(125, 185, 30, 15, ILI9341_WHITE);
tft.setRotation(1);
tft.setTextColor(ILI9341_BLACK);
tft.setTextSize(2);
tft.setCursor(265,120); //Escribimos el texto
tft.print("2025\r\n");
tft.setRotation(0);
tft.setTextColor(ILI9341_BLACK);
tft.setTextSize(1);
tft.setCursor(90,230); //Escribimos el texto
tft.print("2022142010\r\n");
}
void loop() {
}