microrobotics

Untitled

Jan 13th, 2026
4,597
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <TFT_eSPI.h>
  2.  
  3. TFT_eSPI tft;
  4.  
  5. void setup() {
  6.   pinMode(TFT_BL, OUTPUT);
  7.   digitalWrite(TFT_BL, HIGH);   //swtich backlight on Important !!!
  8.   tft.init();
  9.   tft.setRotation(1);
  10.   tft.fillScreen(TFT_BLACK);
  11.   tft.drawString("Hello ESP32", 40, 110, 4);
  12. }
  13.  
  14. void loop() {}
Tags: ESP32
Advertisement