#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(120, 95, 25, ILI9341_PURPLE);
tft.fillCircle(120, 150, 40, ILI9341_PURPLE);
tft.fillRect(80, 155, 80, 10, ILI9341_MAROON);
tft.drawRect(80, 155, 80, 10, ILI9341_BLACK);
tft.drawFastVLine(100,155,10, ILI9341_BLACK);
tft.drawFastVLine(120,155,10, ILI9341_BLACK);
tft.drawFastVLine(140,155,10, ILI9341_BLACK);
tft.fillTriangle(80, 165, 120, 250, 160, 165, ILI9341_MAROON);
tft.drawTriangle(80, 165, 120, 250, 160, 165, ILI9341_BLACK);
tft.setRotation(0);
tft.setTextColor(ILI9341_BLACK);
tft.setTextSize(2);
tft.setCursor(90,265); //Escribimos el texto
tft.print("HELADO\r\n");
}
void loop() {
}