#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(70,1);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(2);
tft.println("Data Diri");
tft.setCursor(0,40);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("Nama : Fakhri");
tft.setCursor(0,70);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("Umur : 20 tahun");
tft.setCursor(0,100);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("TTL : Bukittinggi, 18/10/2024");
tft.setCursor(0,130);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("Jenis Kelamin : Laki-Laki");
tft.setCursor(0,160);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("Status : Mahasiswa");
tft.setCursor(0,190);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("Nomor HP : 082171617081");
tft.setCursor(0,220);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("Alamat : JL.Batang Agam No.4");
tft.setCursor(0,250);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("Hobi :");
tft.setCursor(0,280);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("- Robotika");
tft.setCursor(0,310);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("- Coding");
tft.setCursor(0,340);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(1);
tft.println("- Bikin Konten");
}
void loop() {
}