#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 5
#define TFT_RST 4
#define TFT_DC 2
#define TFT_MISO 19
#define TFT_MOSI 23
#define TFT_CLK 18
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
int estado = 0;
void setup() {
/*Serial.begin(115200);
Serial.println("Hello, ESP32!");*/
tft.begin();
pinMode(14, INPUT);
pinMode(12, OUTPUT);
tft.setRotation(3);
tft.fillScreen(ILI9341_WHITE); // Fondo de pantalla
/*tft.setCursor(26, 50);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("HI, my Friends");
tft.setCursor(20, 100);
tft.fillCircle(157, 162, 25, ILI9341_RED);
tft.drawCircle(10,10,5,ILI9341_GREEN);
tft.drawLine(20,20,100,20, ILI9341_BLUE);
tft.fillRect(20,60,60,20,t ILI9341_YELLOW);
tft.drawRect(20,100,70,20, ILI9341_CYAN);
tft.fillRoundRect(20,140,100,40,5,ILI9341_BLUE);
//tft.drawCircleHelper( 120,60,10,20,20,ILI9341_BLUE );
tft.fillTriangle(240,20,240,60,200,60,ILI9341_RED);*/
//base1();
//base2();
//base3();
//base4();
//base5();
//base6();
base7();
//argollas4();
}
void loop() {
estado = digitalRead(14);
if (estado == HIGH) {
digitalWrite(12, HIGH);
}
else {
digitalWrite(12, LOW);
}
delay(10); // this speeds up the simulation
}
void base1() {
//Una cifra
tft.fillRect(130, 190, 60, 10, ILI9341_YELLOW);
tft.fillRect(120, 200, 80, 20, ILI9341_YELLOW);
tft.fillTriangle(130, 190, 120, 200, 130, 200, ILI9341_YELLOW);
tft.fillTriangle(190, 190, 190, 200, 200, 200, ILI9341_YELLOW);
tft.drawRect(120, 200, 80, 20, ILI9341_BLACK);
tft.drawLine(130, 190, 190, 190, ILI9341_BLACK);
tft.drawLine(130, 190, 120, 200, ILI9341_BLACK);
tft.drawLine(190, 190, 200, 200, ILI9341_BLACK);
//Poste Unidad
tft.fillRoundRect(155, 70, 10, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(160, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(156, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(155, 74, 155, 195, ILI9341_BLACK);
tft.drawLine(165, 74, 165, 195, ILI9341_BLACK);
tft.drawLine(155, 74, 165, 74, ILI9341_BLACK);
//Argolla Unidad
tft.fillRoundRect(140, 182, 40, 13, 5, ILI9341_RED); //Argolla1
tft.drawRoundRect(140, 182, 40, 13, 5, ILI9341_BLACK); //ContornoArgolla
}
void base2() {
//Dos cifras
tft.fillRect(100, 190, 120, 10, ILI9341_YELLOW);
tft.fillRect(90, 200, 140, 20, ILI9341_YELLOW);
tft.fillTriangle(100, 190, 90, 200, 100, 200, ILI9341_YELLOW);
tft.fillTriangle(220, 190, 220, 200, 230, 200, ILI9341_YELLOW);
tft.drawRect(90, 200, 140, 20, ILI9341_BLACK);
tft.drawLine(100, 190, 220, 190, ILI9341_BLACK);
tft.drawLine(100, 190, 90, 200, ILI9341_BLACK);
tft.drawLine(220, 190, 230, 200, ILI9341_BLACK);
//Poste Unidad
tft.fillRoundRect(185, 70, 10, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(190, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(186, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(185, 74, 185, 195, ILI9341_BLACK);
tft.drawLine(195, 74, 195, 195, ILI9341_BLACK);
tft.drawLine(185, 74, 195, 74, ILI9341_BLACK);
//Poste Decena
tft.fillRoundRect(125, 70, 10, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(130, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(126, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(125, 74, 125, 195, ILI9341_BLACK);
tft.drawLine(135, 74, 135, 195, ILI9341_BLACK);
tft.drawLine(125, 74, 135, 74, ILI9341_BLACK);
//Argollas Unidades
tft.fillRoundRect(170, 182, 40, 13, 5, ILI9341_BLUE); //Argolla
tft.drawRoundRect(170, 182, 40, 13, 5, ILI9341_BLACK);
//Argollas Decenas
tft.fillRoundRect(110, 182, 40, 13, 5, ILI9341_RED); //Argolla
tft.drawRoundRect(110, 182, 40, 13, 5, ILI9341_BLACK);
}
void base3() {
//Tres Cifras
//Base ábaco
tft.fillRect(70, 190, 180, 10, ILI9341_YELLOW);
tft.fillRect(60, 200, 200, 20, ILI9341_YELLOW);
tft.fillTriangle(70, 190, 60, 200, 70, 200, ILI9341_YELLOW);
tft.fillTriangle(250, 190, 250, 200, 260, 200, ILI9341_YELLOW);
tft.drawRect(60, 200, 200, 20, ILI9341_BLACK);
tft.drawLine(70, 190, 250, 190, ILI9341_BLACK);
tft.drawLine(70, 190, 60, 200, ILI9341_BLACK);
tft.drawLine(250, 190, 260, 200, ILI9341_BLACK);
//Poste Unidades
tft.fillRoundRect(215, 70, 10, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(220, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(216, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(215, 74, 215, 195, ILI9341_BLACK);
tft.drawLine(225, 74, 225, 195, ILI9341_BLACK);
tft.drawLine(215, 74, 225, 74, ILI9341_BLACK);
//Poste Decenas
tft.fillRoundRect(155, 70, 10, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(160, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(156, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(155, 74, 155, 195, ILI9341_BLACK);
tft.drawLine(165, 74, 165, 195, ILI9341_BLACK);
tft.drawLine(155, 74, 165, 74, ILI9341_BLACK);
//Poste Cenetenas
tft.fillRoundRect(95, 70, 10, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(100, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(96, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(95, 74, 95, 195, ILI9341_BLACK);
tft.drawLine(105, 74, 105, 195, ILI9341_BLACK);
tft.drawLine(95, 74, 105, 74, ILI9341_BLACK);
//Argolla Unidad
tft.fillRoundRect(200, 182, 40, 13, 5, ILI9341_RED); //Argolla1
tft.drawRoundRect(200, 182, 40, 13, 5, ILI9341_BLACK); //ContornoArgolla
//Argolla Decena
tft.fillRoundRect(140, 182, 40, 13, 5, ILI9341_GREEN); //Argolla1
tft.drawRoundRect(140, 182, 40, 13, 5, ILI9341_BLACK); //ContornoArgolla
//Argolla Centena
tft.fillRoundRect(80, 182, 40, 13, 5, ILI9341_BLUE); //Argolla1
tft.drawRoundRect(80, 182, 40, 13, 5, ILI9341_BLACK); //ContornoArgolla
}
void base4 () {
//Base 3 ábaco
tft.fillRect(20, 200, 280, 20, ILI9341_YELLOW);
tft.fillRect(30, 190, 260, 10, ILI9341_YELLOW );
tft.fillTriangle(20, 200, 30, 190, 30, 200, ILI9341_YELLOW);
tft.fillTriangle(290, 190, 290, 200, 300, 200, ILI9341_YELLOW);
tft.drawRect(20, 200, 280, 20, ILI9341_BLACK);
tft.drawLine(30, 190, 290, 190, ILI9341_BLACK);
tft.drawLine(290, 190, 300, 200, ILI9341_BLACK);
tft.drawLine(20, 200, 30, 190, ILI9341_BLACK);
tft.drawLine(20, 200, 300, 200, ILI9341_BLACK);
//Postes ábaco 4 cifras
//Poste Unidad de Mil
tft.fillRoundRect(55, 70, 10, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(60, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(56, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(55, 74, 55, 195, ILI9341_BLACK);
tft.drawLine(65, 74, 65, 195, ILI9341_BLACK);
tft.drawLine(55, 74, 65, 74, ILI9341_BLACK);
//Poste Cenetenas
tft.fillRoundRect(120, 70, 10, 125, 4, ILI9341_YELLOW);
tft.drawCircle(125, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(121, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(120, 74, 120, 195, ILI9341_BLACK);
tft.drawLine(130, 74, 130, 195, ILI9341_BLACK);
tft.drawLine(120, 74, 130, 74, ILI9341_BLACK);
//Poste Decenas
tft.fillRoundRect(190, 70, 10, 125, 4, ILI9341_YELLOW);
tft.drawCircle(195, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(191, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(190, 74, 190, 195, ILI9341_BLACK);
tft.drawLine(200, 74, 200, 195, ILI9341_BLACK);
tft.drawLine(190, 74, 200, 74, ILI9341_BLACK);
//Poste Unidad
tft.fillRoundRect(255, 70, 10, 125, 4, ILI9341_YELLOW);
tft.drawCircle(260, 74, 5, ILI9341_BLACK); // Círculo arriba
tft.fillRect(256, 75, 9, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(255, 74, 255, 195, ILI9341_BLACK);
tft.drawLine(265, 74, 265, 195, ILI9341_BLACK);
tft.drawLine(255, 74, 265, 74, ILI9341_BLACK);
}
void base5() {
tft.fillRect(20, 200, 280, 20, ILI9341_YELLOW);
tft.fillRect(30, 190, 260, 10, ILI9341_YELLOW );
tft.fillTriangle(20, 200, 30, 190, 30, 200, ILI9341_YELLOW);
tft.fillTriangle(290, 190, 290, 200, 300, 200, ILI9341_YELLOW);
tft.drawRect(20, 200, 280, 20, ILI9341_BLACK);
tft.drawLine(30, 190, 290, 190, ILI9341_BLACK);
tft.drawLine(290, 190, 300, 200, ILI9341_BLACK);
tft.drawLine(20, 200, 30, 190, ILI9341_BLACK);
tft.drawLine(20, 200, 300, 200, ILI9341_BLACK);
//poste Unidad
tft.fillRoundRect(252, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(256, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(253, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(252, 74, 252, 195, ILI9341_BLACK);
tft.drawLine(260, 74, 260, 195, ILI9341_BLACK);
tft.drawLine(252, 74, 260, 74, ILI9341_BLACK);
//Argolla Unidad
tft.fillRoundRect(238, 182, 37, 13, 5, ILI9341_BLUE); //Argolla1
tft.drawRoundRect(238, 182, 37, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Decena
tft.fillRoundRect(204, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(208, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(205, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(204, 74, 204, 195, ILI9341_BLACK);
tft.drawLine(212, 74, 212, 195, ILI9341_BLACK);
tft.drawLine(204, 74, 212, 74, ILI9341_BLACK);
//Argolla Unidad
tft.fillRoundRect(190, 182, 37, 13, 5, ILI9341_GREEN); //Argolla1
tft.drawRoundRect(190, 182, 37, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Centena
tft.fillRoundRect(156, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(160, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(157, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(156, 74, 156, 195, ILI9341_BLACK);
tft.drawLine(164, 74, 164, 195, ILI9341_BLACK);
tft.drawLine(156, 74, 164, 74, ILI9341_BLACK);
//Argolla Centena
tft.fillRoundRect(142, 182, 37, 13, 5, ILI9341_RED); //Argolla1
tft.drawRoundRect(142, 182, 37, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Unidad de Mil
tft.fillRoundRect(108, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(112, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(109, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(108, 74, 108, 195, ILI9341_BLACK);
tft.drawLine(116, 74, 116, 195, ILI9341_BLACK);
tft.drawLine(108, 74, 116, 74, ILI9341_BLACK);
//Argolla Centena
tft.fillRoundRect(94, 182, 37, 13, 5, ILI9341_MAGENTA); //Argolla1
tft.drawRoundRect(94, 182, 37, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Decenas de Mil
tft.fillRoundRect(60, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(64, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(61, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(60, 74, 60, 195, ILI9341_BLACK);
tft.drawLine(68, 74, 68, 195, ILI9341_BLACK);
tft.drawLine(60, 74, 68, 74, ILI9341_BLACK);
//Argolla Centena
tft.fillRoundRect(46, 182, 37, 13, 5, ILI9341_CYAN); //Argolla1
tft.drawRoundRect(46, 182, 37, 13, 5, ILI9341_BLACK); //ContornoArgolla
}
void base6() {
tft.fillRect(20, 200, 280, 20, ILI9341_YELLOW);
tft.fillRect(30, 190, 260, 10, ILI9341_YELLOW );
tft.fillTriangle(20, 200, 30, 190, 30, 200, ILI9341_YELLOW);
tft.fillTriangle(290, 190, 290, 200, 300, 200, ILI9341_YELLOW);
tft.drawRect(20, 200, 280, 20, ILI9341_BLACK);
tft.drawLine(30, 190, 290, 190, ILI9341_BLACK);
tft.drawLine(290, 190, 300, 200, ILI9341_BLACK);
tft.drawLine(20, 200, 30, 190, ILI9341_BLACK);
tft.drawLine(20, 200, 300, 200, ILI9341_BLACK);
//poste Unidad
tft.fillRoundRect(268, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(272, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(269, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(268, 74, 268, 195, ILI9341_BLACK);
tft.drawLine(276, 74, 276, 195, ILI9341_BLACK);
tft.drawLine(268, 74, 276, 74, ILI9341_BLACK);
//Argolla Centena
tft.fillRoundRect(257, 182, 32, 13, 5, ILI9341_BLUE); //Argolla1
tft.drawRoundRect(257, 182, 32, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Decena
tft.fillRoundRect(224, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(228, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(225, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(224, 74, 224, 195, ILI9341_BLACK);
tft.drawLine(232, 74, 232, 195, ILI9341_BLACK);
tft.drawLine(224, 74, 232, 74, ILI9341_BLACK);
//Argolla Centena
tft.fillRoundRect(213, 182, 32, 13, 5, ILI9341_MAGENTA); //Argolla1
tft.drawRoundRect(213, 182, 32, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Centena
tft.fillRoundRect(180, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(184, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(181, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(180, 74, 180, 195, ILI9341_BLACK);
tft.drawLine(188, 74, 188, 195, ILI9341_BLACK);
tft.drawLine(180, 74, 188, 74, ILI9341_BLACK);
//Argolla Centena
tft.fillRoundRect(169, 182, 32, 13, 5, ILI9341_GREEN); //Argolla1
tft.drawRoundRect(169, 182, 32, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste unidad de mil
tft.fillRoundRect(136, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(140, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(137, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(136, 74, 136, 195, ILI9341_BLACK);
tft.drawLine(144, 74, 144, 195, ILI9341_BLACK);
tft.drawLine(136, 74, 144, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(125, 182, 32, 13, 5, ILI9341_RED); //Argolla1
tft.drawRoundRect(125, 182, 32, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Decena de mil
tft.fillRoundRect(92, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(96, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(93, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(92, 74, 92, 195, ILI9341_BLACK);
tft.drawLine(100, 74, 100, 195, ILI9341_BLACK);
tft.drawLine(92, 74, 100, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(81, 182, 32, 13, 5, ILI9341_CYAN); //Argolla1
tft.drawRoundRect(81, 182, 32, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Centena de mil
tft.fillRoundRect(48, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(52, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(49, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(48, 74, 48, 195, ILI9341_BLACK);
tft.drawLine(56, 74, 56, 195, ILI9341_BLACK);
tft.drawLine(48, 74, 56, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(37, 182, 32, 13, 5, ILI9341_WHITE); //Argolla1
tft.drawRoundRect(37, 182, 32, 13, 5, ILI9341_BLACK); //ContornoArgolla
}
void base7() {
tft.fillRect(20, 200, 280, 20, ILI9341_YELLOW);
tft.fillRect(30, 190, 260, 10, ILI9341_YELLOW );
tft.fillTriangle(20, 200, 30, 190, 30, 200, ILI9341_YELLOW);
tft.fillTriangle(290, 190, 290, 200, 300, 200, ILI9341_YELLOW);
tft.drawRect(20, 200, 280, 20, ILI9341_BLACK);
tft.drawLine(30, 190, 290, 190, ILI9341_BLACK);
tft.drawLine(290, 190, 300, 200, ILI9341_BLACK);
tft.drawLine(20, 200, 30, 190, ILI9341_BLACK);
tft.drawLine(20, 200, 300, 200, ILI9341_BLACK);
//poste Unidades
tft.fillRoundRect(276, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(280, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(277, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(276, 74, 276, 195, ILI9341_BLACK);
tft.drawLine(284, 74, 284, 195, ILI9341_BLACK);
tft.drawLine(276, 74, 284, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(265, 182, 31, 13, 5, ILI9341_MAGENTA); //Argolla1
tft.drawRoundRect(265, 182, 31, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Decenas
tft.fillRoundRect(236, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(240, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(237, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(236, 74, 236, 195, ILI9341_BLACK);
tft.drawLine(244, 74, 244, 195, ILI9341_BLACK);
tft.drawLine(236, 74, 244, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(225, 182, 31, 13, 5, ILI9341_GREEN); //Argolla1
tft.drawRoundRect(225, 182, 31, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Centenas
tft.fillRoundRect(196, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(200, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(197, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(196, 74, 196, 195, ILI9341_BLACK);
tft.drawLine(204, 74, 204, 195, ILI9341_BLACK);
tft.drawLine(196, 74, 204, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(185, 182, 31, 13, 5, ILI9341_BLUE); //Argolla1
tft.drawRoundRect(185, 182, 31, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Unidades de mil
tft.fillRoundRect(156, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(160, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(157, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(156, 74, 156, 195, ILI9341_BLACK);
tft.drawLine(164, 74, 164, 195, ILI9341_BLACK);
tft.drawLine(156, 74, 164, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(145, 182, 31, 13, 5, ILI9341_RED); //Argolla1
tft.drawRoundRect(145, 182, 31, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Decenas de mil
tft.fillRoundRect(116, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(120, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(117, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(116, 74, 116, 195, ILI9341_BLACK);
tft.drawLine(124, 74, 124, 195, ILI9341_BLACK);
tft.drawLine(116, 74, 124, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(105, 182, 31, 13, 5, ILI9341_CYAN); //Argolla1
tft.drawRoundRect(105, 182, 31, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste Centenas de mil
tft.fillRoundRect(76, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(80, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(77, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(76, 74, 76, 195, ILI9341_BLACK);
tft.drawLine(84, 74, 84, 195, ILI9341_BLACK);
tft.drawLine(76, 74, 84, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(65, 182, 31, 13, 5, ILI9341_WHITE); //Argolla1
tft.drawRoundRect(65, 182, 31, 13, 5, ILI9341_BLACK); //ContornoArgolla
//poste CUnidad de millon
tft.fillRoundRect(36, 70, 8, 125, 4, ILI9341_YELLOW); //Rectangulo con curva
tft.drawCircle(40, 74, 4, ILI9341_BLACK); // Círculo arriba
tft.fillRect(37, 75, 7, 6, ILI9341_YELLOW); //cuadro para tapar círculo
tft.drawLine(36, 74, 36, 195, ILI9341_BLACK);
tft.drawLine(44, 74, 44, 195, ILI9341_BLACK);
tft.drawLine(36, 74, 44, 74, ILI9341_BLACK);
//Argolla Unidad de mil
tft.fillRoundRect(25, 182, 31, 13, 5, ILI9341_YELLOW); //Argolla1
tft.drawRoundRect(25, 182, 31, 13, 5, ILI9341_BLACK); //ContornoArgolla
}
void argollas4 () {
//Argollas Unidades
tft.fillRoundRect(240, 182, 40, 13, 5, ILI9341_RED); //Argolla1
tft.drawRoundRect(240, 182, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(240, 169, 40, 13, 5, ILI9341_RED); //Argolla2
tft.drawRoundRect(240, 169, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(240, 156, 40, 13, 5, ILI9341_RED); //Argolla3
tft.drawRoundRect(240, 156, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(240, 143, 40, 13, 5, ILI9341_RED); //Argolla4
tft.drawRoundRect(240, 143, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(240, 130, 40, 13, 5, ILI9341_RED); //Argolla5
tft.drawRoundRect(240, 130, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(240, 117, 40, 13, 5, ILI9341_RED); //Argolla6
tft.drawRoundRect(240, 117, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(240, 104, 40, 13, 5, ILI9341_RED); //Argolla7
tft.drawRoundRect(240, 104, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(240, 91, 40, 13, 5, ILI9341_RED); //Argolla8
tft.drawRoundRect(240, 91, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(240, 78, 40, 13, 5, ILI9341_RED); //Argolla9
tft.drawRoundRect(240, 78, 40, 13, 5, ILI9341_BLACK);
//Argollas Decenas
tft.fillRoundRect(175, 182, 40, 13, 5, ILI9341_BLUE); //Argolla1
tft.drawRoundRect(175, 182, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(175, 169, 40, 13, 5, ILI9341_BLUE); //Argolla2
tft.drawRoundRect(175, 169, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(175, 156, 40, 13, 5, ILI9341_BLUE); //Argolla3
tft.drawRoundRect(175, 156, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(175, 143, 40, 13, 5, ILI9341_BLUE); //Argolla4
tft.drawRoundRect(175, 143, 40, 13, 5, ILI9341_BLACK);
/*tft.fillRoundRect(175,130,40,13,5,ILI9341_BLUE); //Argolla5
tft.drawRoundRect(175,130,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(175,117,40,13,5,ILI9341_BLUE); //Argolla6
tft.drawRoundRect(175,117,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(175,104,40,13,5,ILI9341_BLUE); //Argolla7
tft.drawRoundRect(175,104,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(175,91,40,13,5,ILI9341_BLUE); //Argolla8
tft.drawRoundRect(175,91,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(175,78,40,13,5,ILI9341_BLUE); //Argolla9
tft.drawRoundRect(175,78,40,13,5,ILI9341_BLACK);*/
//Argollas Centenas
tft.fillRoundRect(105, 182, 40, 13, 5, ILI9341_GREEN); //Argolla1
tft.drawRoundRect(105, 182, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(105, 169, 40, 13, 5, ILI9341_GREEN); //Argolla2
tft.drawRoundRect(105, 169, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(105, 156, 40, 13, 5, ILI9341_GREEN); //Argolla3
tft.drawRoundRect(105, 156, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(105, 143, 40, 13, 5, ILI9341_GREEN); //Argolla4
tft.drawRoundRect(105, 143, 40, 13, 5, ILI9341_BLACK);
/*tft.fillRoundRect(105,130,40,13,5,ILI9341_GREEN); //Argolla5
tft.drawRoundRect(105,130,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(105,117,40,13,5,ILI9341_GREEN); //Argolla6
tft.drawRoundRect(105,117,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(105,104,40,13,5,ILI9341_GREEN); //Argolla7
tft.drawRoundRect(105,104,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(105,91,40,13,5,ILI9341_GREEN); //Argolla8
tft.drawRoundRect(105,91,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(105,78,40,13,5,ILI9341_GREEN); //Argolla9
tft.drawRoundRect(105,78,40,13,5,ILI9341_BLACK);*/
//Argollas Unidades de Mil
tft.fillRoundRect(40, 182, 40, 13, 5, ILI9341_MAGENTA); //Argolla1
tft.drawRoundRect(40, 182, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(40, 169, 40, 13, 5, ILI9341_MAGENTA); //Argolla2
tft.drawRoundRect(40, 169, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(40, 156, 40, 13, 5, ILI9341_MAGENTA); //Argolla3
tft.drawRoundRect(40, 156, 40, 13, 5, ILI9341_BLACK);
tft.fillRoundRect(40, 143, 40, 13, 5, ILI9341_MAGENTA); //Argolla4
tft.drawRoundRect(40, 143, 40, 13, 5, ILI9341_BLACK);
/*tft.fillRoundRect(40,130,40,13,5,ILI9341_MAGENTA); //Argolla5
tft.drawRoundRect(40,130,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(40,117,40,13,5,ILI9341_MAGENTA); //Argolla6
tft.drawRoundRect(40,117,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(40,104,40,13,5,ILI9341_MAGENTA); //Argolla7
tft.drawRoundRect(40,104,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(40,91,40,13,5,ILI9341_MAGENTA); //Argolla8
tft.drawRoundRect(40,91,40,13,5,ILI9341_BLACK);
tft.fillRoundRect(40,78,40,13,5,ILI9341_MAGENTA); //Argolla9
tft.drawRoundRect(40,78,40,13,5,ILI9341_BLACK);*/
}