T-Display TFT- Can't make it go

Hi! I’m finally getting around to the T-Display. It has a TFT built in.
I’ve copied TTGO’s examples, and i found another pile, and nothing’s working.

I haven’t gotten anywhere with TFT and ESP32.
I got it to work once on the Mega, but I want it to display data coming in by ESP Now.

Back to the T-Display:
The TFT does not work.
When I got it, it was running ‘Factory Test’, lots of color, text, a nice TTGO graphic.
I copied it, and ‘bmp.h’ wouldn’t load. And Buttons2.h wouldn’t load. So what’s working on the unit doesn’t work.

I deleted all the button stuff, got it to upload. It’s giving me voltage per serial, but not on the TFT.

All I really want is a Hello World.
This one is simpler.
Please look at this and see why it won’t work.
Thank you.

#include <SPI.h>

#include <TFT_eSPI.h>       // Hardware-specific library

TFT_eSPI tft = TFT_eSPI();  // Invoke custom library

void setup(void) {
  tft.init();

  tft.fillScreen(TFT_BLACK);
  
  // Set "cursor" at top left corner of display (0,0) and select font 4
  tft.setCursor(0, 0, 4);

  // Set the font colour to be white with a black background
  tft.setTextColor(TFT_WHITE, TFT_BLACK);

  // We can now plot text on screen using the "print" class
  tft.println("Intialised default\n");
  tft.println("White text");
  
  tft.setTextColor(TFT_RED, TFT_BLACK);
  tft.println("Red text");
  
  tft.setTextColor(TFT_GREEN, TFT_BLACK);
  tft.println("Green text");
  
  tft.setTextColor(TFT_BLUE, TFT_BLACK);
  tft.println("Blue text");

  delay(5000);

}

void loop() {

  tft.invertDisplay( false ); // Where i is true or false
 
  tft.fillScreen(TFT_BLACK);
  
  tft.setCursor(0, 0, 4);

  tft.setTextColor(TFT_WHITE, TFT_BLACK);
  tft.println("Invert OFF\n");

  tft.println("White text");
  
  tft.setTextColor(TFT_RED, TFT_BLACK);
  tft.println("Red text");
  
  tft.setTextColor(TFT_GREEN, TFT_BLACK);
  tft.println("Green text");
  
  tft.setTextColor(TFT_BLUE, TFT_BLACK);
  tft.println("Blue text");

  delay(5000);


  // Binary inversion of colours
  tft.invertDisplay( true ); // Where i is true or false
 
  tft.fillScreen(TFT_BLACK);
  
  tft.setCursor(0, 0, 4);

  tft.setTextColor(TFT_WHITE, TFT_BLACK);
  tft.println("Invert ON\n");

  tft.println("White text");
  
  tft.setTextColor(TFT_RED, TFT_BLACK);
  tft.println("Red text");
  
  tft.setTextColor(TFT_GREEN, TFT_BLACK);
  tft.println("Green text");
  
  tft.setTextColor(TFT_BLUE, TFT_BLACK);
  tft.println("Blue text");

  delay(5000);
}

It’s all about the TFT_eSPI config. Please try and use this exact library version: GitHub - Xinyuan-LilyGO/TTGO-T-Display

Remove the old declaration of the lib_deps of the platformio.ini, remove the whole .pio\ folder, and put the above TFT_eSPI library folder in lib/.

It has the config

already.

This is where I got everything I’ve tried.

Button2.h and bmp.h are nowhere to be found.

Can you link to the page where these files are referenced?

So that exact version of the library is definitely in the project’s lib/folder?

I cannot find either. There is a Button2, but it’s wrong, and there’s a BMP, a graphics library.

only the eSPI library is in the folder.