#include <TFT_eSPI.h>
#include <SPI.h> // this is needed for display
// The display also uses hardware SPI, plus #9 & #10
#define TFT_CS 15
#define TFT_DC 2
#define TFT_MOSI 23
#define TFT_SCLK 18
TFT_eSPI tft = TFT_eSPI(); // Invoke custom library with default width and height
#define ILI9341_RED TFT_RED
#define ILI9341_YELLOW TFT_YELLOW
#define ILI9341_GREEN TFT_GREEN
#define ILI9341_CYAN TFT_CYAN
#define ILI9341_BLUE TFT_BLUE
#define ILI9341_MAGENTA TFT_MAGENTA
#define VerdeOscuro 0x19A2
#define VerdeBrillo 0xBED7
#define VerdeMid 0x4B28
void setup(void) {
Serial.begin(115200);
tft.begin();
tft.fillScreen(ILI9341_BLACK);
//tft.drawArc(70, 70, 39, 33, 120, 0, VerdeBrillo, VerdeBrillo, true);
// make the color selection boxes
tft.fillRect(0, 0, 15, 15, ILI9341_RED);
tft.fillRect(15, 0, 15, 15, ILI9341_YELLOW);
tft.fillRect(15*2, 0, 15, 15, ILI9341_GREEN);
tft.fillRect(15*3, 0, 15, 15, ILI9341_CYAN);
tft.fillRect(15*4, 0, 15, 15, ILI9341_BLUE);
tft.fillRect(15*5, 0, 15, 15, ILI9341_MAGENTA);
tft.drawArc(70, 70, 39, 33, 10, 180, VerdeBrillo, VerdeBrillo, true);
}
void loop() {
// Wait for a touch
}