#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>

#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() {
  tft.begin();
  tft.setRotation(1);
  tft.fillScreen(ILI9341_WHITE);

  tft.fillRoundRect(8, 9, 305, 220, 10, tft.color565(64, 64, 64));  // plomo oscuro
  // Segundo cuadrado (plomo claro o gris claro)
  tft.fillRoundRect(9, 10, 303, 217, 10, tft.color565(192, 192, 192));  // plomo claro
////
tft.fillRect(20, 9,200, 220, tft.color565(50, 50, 50)); // RECTANGULO
tft.fillRect(220, 9,10, 220, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(50, 40,150, 150, tft.color565(173, 216, 230)); // RECTANGULO
tft.fillRect(238, 50,70, 40, tft.color565(64, 64, 64)); // RECTANGULO
//TECLAS 1
tft.fillRect(239, 104,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(240, 105,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(243, 108);
  tft.println("1");
//TECLA 2
tft.fillRect(264, 104,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(265, 105,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(268, 108);
  tft.println("2");
//TECLA 3
tft.fillRect(294, 104,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(295, 105,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(298, 108);
  tft.println("3");
//TECLA 4
tft.fillRect(239, 124,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(240, 125,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(243, 128);
  tft.println("4");
//TECLA 5
tft.fillRect(264, 124,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(265, 125,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(268, 128);
  tft.println("5");
//TECLA 6
tft.fillRect(294, 124,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(295, 125,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(298, 128);
  tft.println("6");
//TECLA 7
tft.fillRect(239, 144,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(240, 145,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(243, 148);
  tft.println("7");
//TECLA8 8
tft.fillRect(264, 144,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(265, 145,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(268, 148);
  tft.println("8");
//TECLA 9
tft.fillRect(294, 144,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(295, 145,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(298, 148);
  tft.println("9");
//TECLA 0
tft.fillRect(264, 164,15, 15, tft.color565(64, 64, 64)); // RECTANGULO
tft.fillRect(265, 165,13, 13, tft.color565(255, 255, 255)); // RECTANGULO
  tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(268, 168);
  tft.println("0");
//TECLA PARAR
  tft.fillRoundRect(232, 165, 30, 15, 1, tft.color565(64, 64, 64));
//
  tft.fillRoundRect(233, 166, 28, 13, 1, tft.color565(255, 255, 255));
 tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(235, 170);
  tft.println("STOP");
// TECLA INICIAR

  tft.fillRoundRect(280, 165, 30, 15, 10, tft.color565(64, 64, 64));

  tft.fillRoundRect(281, 166, 28, 13, 10, tft.color565(255, 255, 255));
   tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(283, 170);
  tft.println("STAR");
//RECTANGULO FINAL

  tft.fillRoundRect(242, 195, 65, 22, 1, tft.color565(64, 64, 64));

  tft.fillRoundRect(243, 196, 63, 20, 1, tft.color565(255, 255, 255));
 //final segundo
 
  tft.fillRoundRect(244, 197, 60, 18, 1, tft.color565(64, 64, 64));

  tft.fillRoundRect(246, 198, 56, 16, 1, tft.color565(255, 255, 255));

//texto
  tft.setTextColor(tft.color565(0, 0, 255));
  tft.setTextSize(1);
  tft.setCursor(260, 29);
  tft.println("BYTE");
    tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(250, 38);
  tft.println("Microondas");

    tft.setTextColor(tft.color565(64, 64, 64));
  tft.setTextSize(1);
  tft.setCursor(20, 230);
  tft.println("AUTOR: ROGER MEZA ARANGO");

}
void loop() {
  // Nada aquí
}