#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC 10
#define TFT_CS 9
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
tft.begin();
Serial.begin(9600);
Serial.println( "Привіт" );
delay(200);
Serial.println( "Робота з екраном");
unsigned long start = micros();
yield();
tft.fillScreen(ILI9341_ORANGE);
delay(400);
yield();
tft.fillScreen(ILI9341_WHITE);
delay(400);
yield();
tft.fillScreen(ILI9341_GREEN);
delay(200);
yield();
tft.fillScreen(ILI9341_BLACK);
yield();
//return micros() - start;
tft.setCursor(26, 120);
tft.setTextColor(ILI9341_ORANGE);
tft.setTextSize(4);
tft.println("Text1");
delay(400);
tft.setCursor(20, 160);
tft.setTextColor(ILI9341_WHITE);
delay(400);
tft.setTextSize(4);
tft.println("Text2");
delay(400);
tft.setCursor(20, 200);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(4);
tft.println("Text3");
delay(400);
tft.setCursor(20, 240);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Text4");
delay(400);
}
void loop() { }