#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.fillRect(115, 100, 10, 15, ILI9341_GREEN);
tft.fillCircle(120, 150, 40, ILI9341_GREEN);
tft.fillTriangle(80, 155, 120, 250, 160, 155, ILI9341_GREEN);
tft.fillRect(117, 245, 5, 15, ILI9341_BLUE);
tft.drawFastHLine(85,130,65, ILI9341_BLACK);
tft.drawFastHLine(80,145,80, ILI9341_BLACK);
tft.drawFastHLine(108,225,24, ILI9341_BLACK);
tft.setRotation(0);
tft.setTextColor(ILI9341_BLACK);
tft.setTextSize(2);
tft.setCursor(90,265); //Escribimos el texto
tft.print("TROMPO\r\n");
}
void loop() {
}