#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <TFT_eSPI.h>
//#include <Fonts/FreeMono12pt7b.h>

#define TFT_DC 2
#define TFT_CS 15

#define GFXFF 1
#define FF18 &FreeSans12pt7b

TFT_eSPI tft = TFT_eSPI();
TFT_eSprite sprite = TFT_eSprite(&tft);



//colours
unsigned short back = TFT_WHITE;
unsigned short darkG = 0x2945;
unsigned short lightG = 0xBDF7;
unsigned short red = 0x9820;
unsigned short segCol[4] = {darkG, darkG, red, red};

// digits in clock
String digits[4] = {"0", "2", "1", "3"};
int n = 0; // counter for seconds

Adafruit_ILI9341 display = Adafruit_ILI9341(TFT_CS, TFT_DC);

void setup() {
  display.begin();
  display.setRotation(3);
  display.fillScreen(TFT_BLUE);

  sprite.createSprite(320, 240);


}

void loop() {

  draw();

}

void draw() {
  sprite.fillSprite(TFT_WHITE);
  sprite.loadFont(&FF18);
  sprite.setTextDatum(4);

}