/*
TFT LCD CONNECTION
CS : 5
MISO : 19
MOSI : 23
SCK : 18
CD : 17
RST : 16
*/
// Displaying texts on ILI9431 TFT LCD
const byte TFT_SCK = 18;
const byte TFT_MOSI = 23;
const byte TFT_MISO = 19;
const byte TFT_CS = 5;
const byte TFT_DC = 17;
// Define the SPI bus and the object for accessing the TFT
Arduino_ESP32SPI bus = Arduino_ESP32SPI(
TFT_DC, TFT_CS, TFT_SCK, TFT_MOSI, TFT_MISO);
Arduino_ILI9341 tft = Arduino_ILI9341(&bus);
void setup(void) {
tft.begin();
tft.setRotation(1);
tft.fillScreen(BLUE);
tft.setTextSize(2);
tft.setTextColor(WHITE);
tft.setCursor(10, 10);
tft.print("xxxxxx");
tft.setTextSize(3);
tft.setTextColor(YELLOW);
tft.setCursor(10, 50);
tft.print("xxxxxxxxxxx");
}
void loop() {
}