#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_DC 22
#define TFT_CS 20
#define TFT_RST 21
#define TFT_MOSI 19
#define TFT_SCK 18
#define TFT_MISO 17
Adafruit_ILI9341 screen = Adafruit_ILI9341(TFT_DC,TFT_CS,TFT_MOSI,TFT_SCK,TFT_RST,TFT_MISO);
void setup() {
screen.begin();
screen.setTextColor(ILI9341_WHITE);
screen.println("hello World!");
screen.drawPixel(16,0,ILI9341_WHITE);
delay(1000);
screen.fillScreen(ILI9341_WHITE);
Serial1.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
delay(1); // this speeds up the simulation
}