#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.setCursor(26, 40);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(2);
tft.println("Personal information");
tft.setCursor(26, 80);
tft.setTextColor(ILI9341_WHITE);
tft.setTextSize(2);
tft.println("Name: Phuriphat");
tft.setCursor(26, 100);
tft.setTextColor(ILI9341_WHITE);
tft.setTextSize(2);
tft.println("Surname: Butthai");
tft.setCursor(26, 120);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(2);
tft.println("Age: 18");
tft.setCursor(26, 140);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(2);
tft.println("Gender: Male");
tft.setCursor(26, 160);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(2);
tft.println("Height: 162");
}
void loop() {
}