Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank screen but still uploads code #122

Open
JandGprojects opened this issue Oct 15, 2023 · 3 comments
Open

blank screen but still uploads code #122

JandGprojects opened this issue Oct 15, 2023 · 3 comments

Comments

@JandGprojects
Copy link

JandGprojects commented Oct 15, 2023

on my esp32 ttgo t-display it sees my computer and uploads code but the screen is blank when using my code that worked before and even the sketches. By the way I use the TFT_eSPI library and the cable still works since it uploads and connects to the board. Also I have had this happen to 2 of my boards now and one was brand new and had this problem.
I have tried many solutions I could find on the web but nothing has so far worked, does anyone have an answer to my problem?

@DawsonLeBrown
Copy link

DawsonLeBrown commented Nov 7, 2023

I've got the same issue.

I have uploaded a simple test script to the board which, once loaded to the board, is able to output text to the serial monitor, and blink a led on GPIO 15 - but I am unable to get anything on the screen.

example script:

#include "TFT_eSPI.h"

TFT_eSPI tft= TFT_eSPI();
void setup()
{
    Serial.begin(115200);
    Serial.println("Setup Starting");
    pinMode(15, OUTPUT);
    digitalWrite(15, LOW);

    tft.init();

    delay(100);
    Serial.println("Setup Done");
}
int i=0; 
void loop()
{
    tft.setRotation(3);
    tft.fillScreen(TFT_ORANGE);
    i++;
    Serial.println("loop");
    digitalWrite(15, HIGH);
    delay(25);
    digitalWrite(15, LOW);
    // Wait a bit before going again.
    delay(5000);
    Serial.println("again");
}

@aleonnet
Copy link

aleonnet commented Nov 8, 2023

I had the same problem. In my case I removed the old Arduino IDE and installed a new one(2.2.1).
Also I'm using a more recent version of the library TFT_eSPI, check that at https://github.com/Bodmer/TFT_eSPI/releases or type TFT_eSPI on Arduino library manager.

Edit the User_Setup_Select.h file on /Users/./Documents/Arduino/libraries/TFT_eSPI

Comment the line (add // to th beginning of the line)
#include <User_Setup.h> // Default setup is root library folder

And uncomment the line
//#include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT

@Av2939
Copy link

Av2939 commented Dec 16, 2023

I had the same problem. In my case I removed the old Arduino IDE and installed a new one(2.2.1). Also I'm using a more recent version of the library TFT_eSPI, check that at https://github.com/Bodmer/TFT_eSPI/releases or type TFT_eSPI on Arduino library manager.

Edit the User_Setup_Select.h file on /Users/./Documents/Arduino/libraries/TFT_eSPI

Comment the line (add // to th beginning of the line) #include <User_Setup.h> // Default setup is root library folder

And uncomment the line //#include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT

Yup this fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants