#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);
int ID;
int R, G, B;
int X = 320;
int Y = 240;//********************************************************
void setup() {
randomSeed(analogRead(0) * analogRead(1));
// ID = tft.readID();
tft.begin(ID);
tft.setRotation(0);
// tft.fillScreen(TFT_BLACK);
}//********************************************************
void loop() {
R = random(0, 255);
G = random(0, 255);
B = random(0, 255);
uint16_t rgbColor = tft.color565(R, G, B);
for (int i = 0; i < Y / 3; i++) {
//tft.fillScreen(rgbColor);
tft.fillCircle(Y / 2, X / 2, i, rgbColor);
delay(5);
}
// tft.fillScreen(TFT_BLACK);
delay(100);
}