Xinyuan-LilyGO / T-Display-S3

MIT License
731 stars 173 forks source link

Blank screen with TFT_eSPI #208

Closed d3mac123 closed 3 months ago

d3mac123 commented 6 months ago

I have 2 T-Display S3 boards and all of them were working fine with the TFT_eSPI library. However, yesterday, for some reason, both stopped to display (the code is working behind, as I can see via the Terminal messages). I have tried everything:

Any ideas on how to get my boards displaying again?

teastainGit commented 6 months ago

Couple things to check: 1) In my repository (https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples ) there is a copy of the 'User_Setup_Select.h' file. It must copied to the TFT_eSPI library folder. It is reset to default every time you allow the Arduino IDE to do an update. If there is no image, copy and replace this file.

2) Did you load my HotHead example? Did it work as expected? 3) Are you on battery or USB power? 4) Is the backlight on but no image? These are the most common problems, let me know how you make out! -Terry teastain@me.com

d3mac123 commented 6 months ago

@teastainGit Thanks for the help. Your HotHead example works fine. However, mine does not. I always run on USB power, btw. Backlight is on, terminal messages working as expected. Only the display is fully black :(

Also, I have Bodmer's version 2.5.0 and there is an update for the 2.5.4 - should I install it?

teastainGit commented 6 months ago

2.5.4 and all further are LilyGO compatible (!) after a 6 month long struggle! But you ALWAYS have to edit the 'User_Setup_Select.h' file as shown below:

comment out: //#include <User_Setup.h>           // Default setup is root library folder
un-comment: #include <User_Setups/Setup206_LilyGo_T_Display_S3.h>     // For the LilyGo T-Display S3 based ESP32S3 with ST7789 170 x 320 TFT

Your sketch must contain these components: "If you are NOT running one of my sketches, you should add:"

  #define PIN_POWER_ON 15  // LCD and battery Power Enable
  #define PIN_LCD_BL 38    // BackLight enable pin (see Dimming.txt)

  just before the setup and then in setup add:
  pinMode(PIN_POWER_ON, OUTPUT);  //triggers the LCD backlight
  pinMode(PIN_LCD_BL, OUTPUT);    // BackLight enable pin

  digitalWrite(PIN_POWER_ON, HIGH);
  digitalWrite(PIN_LCD_BL, HIGH); 
d3mac123 commented 6 months ago

Thank you so much for your help here. Although my previous code is still not working (there is something I will have to figure out), I made a few simple examples and I can see the board is working fine. I really appreciate the help!

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.