#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 10
#define TFT_DC 9
#define TFT_MOSI 11
#define TFT_CLK 13
#define TFT_RST 8
#define TFT_MISO 12
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS,TFT_DC,TFT_MOSI,TFT_CLK,TFT_RST,TFT_MISO);
void setup() {
// put your setup code here, to run once:
tft.begin();
tft.setRotation(0);
}
void loop() {
// put your main code here, to run repeatedly:
tft.setCursor(26,10);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(3);
tft.println("3230432029\n");
tft.setCursor(26,120);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("School of information science and engineering\n");
tft.setCursor(26,250);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(3);
tft.println("NingboTech university\n");
}