/* ESP32 ILI9341 Cap Touch Starter
Simply dislays text on the screen
*/
#include <TFT_eSPI.h>
#include <SPI.h> // this is needed for display
// The display also uses hardware SPI, plus #9 & #10
#define TFT_CS 15
#define TFT_DC 2
#define TFT_MOSI 23
#define TFT_SCLK 18
TFT_eSPI tft = TFT_eSPI(); // Invoke custom library with default width and height
void setup(void) {
Serial.begin(115200);
tft.begin();
tft.setRotation(0);
Serial.println("TFT set up");
showStandardText();
}
void loop() {
}
void showStandardText() {
String text = "Hello World";
tft.drawString(text, 0, 0, 2);
}