#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
 
#define TFT_DC 9
#define TFT_CS 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
 
void setup() {
  
    tft.begin();
  tft.setRotation(3);
  tft.fillScreen(ILI9341_BLACK);
  tft.setCursor(10, 2);
  tft.setTextColor(ILI9341_RED);
  tft.setTextSize(3);
 
  tft.drawRect(0,0,160,25,ILI9341_RED);                    //virsutine dalis
  tft.drawRoundRect(7,60,146,58,5,ILI9341_RED);            //apatine dalis (x,y,h,w,roundness,color)
  tft.println("GOLF GTD");
 
  logo(ILI9341_WHITE, ILI9341_BLUE);
}
 
void loop() { delay(1000);}
 
void logo(uint16_t color1, uint16_t color2) {
//Circles
tft.fillCircle(80, 89, 26, color2);
tft.fillCircle(80, 89, 22, color1);
tft.fillCircle(80, 89, 18, color2);
//topV
tft.fillTriangle(70, 72, 77, 87, 82, 87, color1);  //  first    
tft.fillTriangle(73, 69, 70, 72, 82, 87, color1);  //  this part /*  \   */  
tft.fillTriangle(86, 69, 77, 87, 82, 87, color1);  //  this one /
tft.fillTriangle(90, 72, 86, 69, 82, 87, color1);  //  last
//bottomW
tft.fillTriangle(62, 90, 62, 79, 73, 109, color1);
tft.fillTriangle(68, 104, 62, 78, 76, 106, color1);
tft.fillTriangle(70, 107, 77, 90, 82, 90, color1);
tft.fillTriangle(74, 108, 70, 107, 82, 90, color1);
tft.fillTriangle(90, 107, 77, 90, 82, 90, color1);
tft.fillTriangle(90, 106, 85, 107, 79, 93, color1);
tft.fillTriangle(83, 108, 94, 75, 98, 81, color1);
tft.fillTriangle(86, 106, 91, 107, 97, 76, color1);
}