#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define DC 9
#define CS 10
#define RST 8
#define MOSI 11
#define MISO 12
#define CLK 13
Adafruit_ILI9341 tft = Adafruit_ILI9341(
CS,
DC,
MOSI,
CLK,
RST,
MISO
);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
tft.begin();
}
void loop() {
// put your main code here, to run repeatedly:
testText();
}
unsigned long testText(){
tft.setCursor(25, 0);
tft.setTextColor(ILI9341_WHITE);
tft.setTextSize(2);
tft.println("Hello World!");
tft.println("second Line");
tft.println("한글");
}