#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 5
#define TFT_DC 2
#define TFT_RST 4
Adafruit_ILI9341 tft(TFT_CS, TFT_DC, TFT_RST);
void setup() {
tft.begin();
tft.setRotation(1);
tft.fillScreen(ILI9341_BLACK);
tft.setTextSize(2);
tft.setTextColor(ILI9341_BLUE);
tft.setCursor(10, 60);
tft.println("Nama :");
tft.setCursor(90, 60);
tft.println("Farrel Dedi Pramana");
tft.setCursor(10, 85);
tft.println("NPM :");
tft.setCursor(130, 85);
tft.println("2605010030");
tft.setCursor(10, 110);
tft.println("Voltage :");
tft.setCursor(130, 110);
tft.println("220 V");
tft.setCursor(10, 135);
tft.println("Current :");
tft.setCursor(130,135);
tft.println("5 A");
tft.setCursor(10, 160);
tft.println("Power :");
tft.setCursor(130, 160);
tft.println("900 W");
tft.setCursor(10, 185);
tft.println("Cos Phi :");
tft.setCursor(130, 185);
tft.println("0.96");
tft.setCursor(10, 210);
tft.println("Energy :");
tft.setCursor(130, 210);
tft.println("5 Kwh");
}
void loop() {
}Loading
esp32-devkit-c-v4
esp32-devkit-c-v4