#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(1); // Ajustar la orientación
tft.fillScreen(ILI9341_WHITE); // Fondo blanco
tft.drawCircle(160, 75, 55, ILI9341_BLACK);
tft.fillCircle(160, 75, 55, ILI9341_YELLOW);
tft.drawCircle(165, 85, 35, ILI9341_BLACK);
tft.fillRect(120, 55, 90, 35, ILI9341_YELLOW);
tft.fillRect(130, 45, 30, 30, ILI9341_BLACK);
tft.fillRect(135, 50, 20, 20, ILI9341_WHITE);
tft.fillCircle(145, 60, 5, ILI9341_MAROON);
tft.fillRect(160, 45, 10, 5, ILI9341_BLACK);
tft.fillRect(170, 45, 30, 30, ILI9341_BLACK);
tft.fillRect(175, 50, 20, 20, ILI9341_WHITE);
tft.fillCircle(185, 60, 5, ILI9341_MAROON);
tft.setRotation(1);
tft.setTextColor(ILI9341_BLACK);
tft.setTextSize(2);
tft.setCursor(135,135); //Escribimos el texto
tft.print("EMOJI ALEGRE\r\n");
}
void loop() {
}