Xinyuan-LilyGO / T-Dongle-S3

An ESP32S3 development board that can freely use WIFI, BLE, TF, LED, TFT_LCD functions.
MIT License
144 stars 46 forks source link

TFT is not working #26

Open antonflorin opened 6 months ago

antonflorin commented 6 months ago

I cannot use any exemple of TFT (I used the documentation of the device and the indications on the git page). When I compile and write the app to the device, the device it stops working, even the serial connection it stops.

TsKyrk commented 6 months ago

Using Win10 here.

I have the same issue : I can't get Android IDE to compile a working binary. Once flashed with Factory.ino or TFT.ino the TFT display remains black and the serial link connection becomes unstable (due to continuous reboots it seems).

If you are using Windows, you can restore the factory firmware using T-Dongle-S3/firmware/flash to device.bat The device must first be unplugged and replugged while the reset button is being pressed.

Moreover I've successfully compiled a working firmware but using PlatformIO + applying the recommendation of this PR : https://github.com/Xinyuan-LilyGO/T-Dongle-S3/pull/23 Which consists in removing 3 lines in platformio.ini :

platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.5

My guess is that an online dependency has been deleted recently and the T-dongle-S3 repo has not been corrected accordingly. But since I am a newbie, I can't really be sure : maybe I am just missing something.

I would also appreciate some help to get Android IDE to work with this device. I was not ready to dive into PlatformIO yet.

Jason2866 commented 6 months ago

The problem is the bodmer/TFT_eSPI library. It is not working with newer Arduino core versions. All versions after core 2.0.14 will fail. See https://github.com/espressif/arduino-esp32/issues/9618#issuecomment-2114839060

sbrandsma commented 6 months ago

The problem is the bodmer/TFT_eSPI library. It is not working with newer Arduino core versions. All versions after core 2.0.14 will fail. See espressif/arduino-esp32#9618 (comment)

You saved me a lot of time! Switching back to 2.0.10 (picked a random version below 2.0.14) worked!

TsKyrk commented 6 months ago

Here came our savior @Jason2866 ! I've switched back to package "ESP32 by Espressif Systems v2.0.14" and now I can compile Factory.ino. Thank you very much for your help. I hope their future releases will fix the issues.

gazhay commented 4 months ago

I switched to the package from [https://github.com/Xinyuan-LilyGO/T-Dongle-S3/issues/26#issuecomment-2116374872]

Compiles but still blank screen. Which TST_eSPI library works with "ESP32 by Espressif Systems v2.0.14" ??

kd8bxp commented 3 months ago

@sbrandsma @Jason2866 Thank you, I've been stuck on this issue for some time, turns out if I knew what I was searching for I would have found the answer a while ago LOL.... Thanks again thou, saved me from loosing what little mind I have left. :-)

gazhay commented 2 months ago

I reverted to TFT lib 2.5.0 and board def 2.0.11 - which were both the newest when I had my last working compile and I still get nothing on the screen - backlight is on, but no output.

This code is still running on a 2nd dongle compiled at the same time, so I think there are deeper issues.

gazhay commented 2 months ago

I downloaded the arduino IDE of that era (sep 2023) and the exact same code compiles and TFT works.

crlab3 commented 2 months ago

Hi,

Wanted to just add my 2 cents here. I'm on Win10 VisualStudioCode + PlatformIO & ArduinoFramework for ESP32, trying to program a Lilygo T-Dongle S3. As @TsKyrk mentioned removing those lines (https://github.com/Xinyuan-LilyGO/T-Dongle-S3/issues/26#issuecomment-2106324844) and setting

platform = espressif32@6.5.0

and changing to bodmer's TFT_eSPI to 2.5.43 by altering

lib_deps = bodmer/TFT_eSPI @ ^2.5.43

helped to run the TFT example, it is working well, finally :) Hope it helps somebody.

Thanks for all the support :)