Xinyuan-LilyGO / T-Display-S3

MIT License
729 stars 172 forks source link

Display black and unable to display anything #214

Closed cahudson closed 2 months ago

cahudson commented 5 months ago

Have tried this on both a t-display s3 and a t-display s3 pro. I am unable to have anything displayed on the display and the display remains black. It is the following configuration:

1) Arduino IDE 2.2.1 2) libraries from the lib folder of the t-display-s3 github are in place 3) in the TFT-eSPI User_Setup_Select.h the 206 library line is uncommented 4) the TFT_eSPI version matches what is in the github of 2.5.0.

I have done the following and verified the following: 1) uninstalled and reinstalled the Arduino IDE 2) Removed all the libraries and reinstalled from the github and verified the TFT_eSPI 3) Have tried multiple of the TFT_eSPI examples including the TFT_Print_Test and TFT_Clock 4) Have verified that the ino files when uploaded are running on the t-display by doing some quick Serial printlns back to the arduino ide

Note this worked originally but appears to have stopped working after several months of coding in arduino ide on multiple projects and then coming back to the t-display s3. The arduino ide was upgraded along with many libraries installed. But all those were removed and the ide was uninstalled and reinstalled.

Anyone have any thoughts as to why the display is not showing or some things to try? thanks

teastainGit commented 5 months ago

This is the number 1 problem with this board. It offers amazing performance, colour display, etc, but it is tricky to keep running due to Arduino IDE library updates. It looks like you are doing all the right things! Having said that, perhaps check out my LilyGO T-Display S3 GitHub repository here: https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples I keep a copy of the corrected 'User_Setup_Select.h' file on hand (in my repository) to be more convenient. Every software update overwrites that file!!! My examples are bare bones TFT_eSPI with serial output. Let me know how you get on. -Terry

Superberti commented 5 months ago

Same setup - same problem here :-(

Is there any reason why the patch for the display is not included Bodmer's in TFT_eSPI?

teastainGit commented 5 months ago

'User_Setup_Select.h' file is included in bodmer's repository. All useable configurations can be selected here. line 132:

include <User_Setups/Setup206_LilyGo_T_Display_S3.h> // For the LilyGo T-Display S3 based ESP32S3 with ST7789 170 x 320 TFT

Superberti commented 5 months ago

OK, I just forgot the display enable pin. It is printed on top of the display table and not on the ride side as the other signals ;-( But now the display is up an running. But you still need to use Lilygo's TFT_eSPI repo, not Bodmers.

Superberti commented 5 months ago

OK, I was wrong, I tested again and I can confirm that the current Bodmer's TFT_eSPI is compatible with the display. It's a little bit tricky as Arduino has no "clean all" function and the (already) compiled libs are cached. So before testing a different lib (by copying the code with the explorer) it is necessary to switch to a different board in order to clean up the caches.

So in the end it is not too hard to use the display:

  1. Uncomment the right user_setup line (as stated in your previous comment)
  2. Remember to switch on the display power and backlight before doing anything else.

Thanks and bye,

lv333ming commented 5 months ago

I also encountered the problem of not being able to display

include

TFT_eSPI tft = TFT_eSPI(); TFT_eSprite sprite = TFT_eSprite(&tft);

void setup() { // put your setup code here, to run once: tft.init(); tft.fillScreen(TFT_RED); }

void loop() { // put your main code here, to run repeatedly: }

Write test code, black screen. Hope it can solve the problems encountered。

Superberti commented 5 months ago

@lv33ming:

What about 1) and 2) in my last post?

lv333ming commented 5 months ago

@lv33ming:

What about 1) and 2) in my last post?

Didn't solve the problem, could you elaborate on how to solve such a problem.

teastainGit commented 5 months ago

So, this board is very picky about settings and libraries! That is why I made a user support GitHub here: https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples Almost every time I start a LilyGO T-Display S3 project I have to down load the LilyGO repository and replace, overwrite, the Arduino IDE TFT_eSPI and lvgl library. I suggest that you read my repository and try uploading the HotHead example. It is simple but thorough sketch for TFT_eSPI and it has a changing serial output for function check. A sketch with no functions in the main loop may jam up the CPU and prevent uploading. Always have at least 100ms delay in the main loop! let me know how you make out. -Terry

lv333ming commented 5 months ago

After replacing the file, an error occurred during compilation

In file included from C:\Users\Administrator\AppData\Local\Temp\arduino\sketches\93FB1A199AD77DC0883FEFC720D205D9\sketch\HotHead.ino.cpp:1: C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3\cores\esp32/Arduino.h:23:10: fatal error: stdbool.h: No such file or directory 23 | #include | ^~~ compilation terminated.

exit status 1

Compilation error: exit status 1

teastainGit commented 5 months ago

Are you using Arduino IDE 2.2.1? Are you using ESP32 board def 2.0.13? LilyGO does nor recommend ESP32 ver 3 yet. If so, can you try HotHead with board definition 2.0.13?

Screenshot 2024-01-27 at 7 36 09 PM

:also personally curious why your directory slashes are \ back slash? Mine are / forward slash (M1 Mac) I see 'esp32\3.0.0-alpha3\cores\esp32/Arduino.h' in your compile trace? forward and back slash!

lv333ming commented 5 months ago

Success! I went directly to modify the file, and the compilation came through the screen. Thank you so much!

lv333ming commented 5 months ago

QQ图片20240128091414

teastainGit commented 5 months ago

Nice. Love success! -Terry

OnlyFerris commented 4 months ago

Received a T-Display-S3 in the mail today that I'd bought online

When I connected power, it displayed some stuff about trying to connect to a WIFI AP

I downloaded the ZIP file for this repo and extracted it in Arduino libs

Selected board "LilyGo T-Display-S3" in Arduino and tried to flash the "PokerS3" example.

Arduino IDE seemed to do this just fine

Screen is completely black now.

Not sure what I did wrong :S

OnlyFerris commented 4 months ago

Tried the "PCBClock" example as well. Same result; black screen.

OnlyFerris commented 4 months ago

My model is specifically "T-Display S3 AMOLED" and I just found that there is a separate repo https://github.com/Xinyuan-LilyGO/T-Display-S3-AMOLED for that model so I am going to try those files now.

martinbertsch commented 3 months ago

Would you be so kind to try to install this sketch and let me know if you get any display output? @teastainGit HotHead works fine. So I'm very clueless.

https://github.com/coppermilk/wiener_linien_esp32_monitor/tree/main

github-actions[bot] commented 2 months ago

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

github-actions[bot] commented 2 months ago

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