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

Factory Code #8

Open Jorge-Blanco-813 opened 1 year ago

Jorge-Blanco-813 commented 1 year ago

The Example Factory code does not work, Will compile and load in Arduino but no display, displays blank even though LED color cycling is working, looks like any sample code to test the display is not working, maybe TFT_eSPI changed

werty1st commented 1 year ago

For me the factory code is working oob with platformio. With the Arduino IDE I was not able to build it.

sergey1369 commented 1 year ago

Versions: Arduino 2.1.0. OS: Ubuntu 22.04. I've found way to compile examples/factory and examples/TFT.

  1. Copy T-Dongle-S3/lib to ~/my-sketchbook-path/libraries and do not allow to upgrade it.
  2. When flashing ALWAYS choose device "ESP32s3 Dev Module" and port "/dev/ACM0". It shows something different by default.
  3. After flashing factory dongle freezes, so I need to take out and insert it again every time.

I hope this helps.

esp32beans commented 1 year ago

Arduino IDE: 1.8.19 OS: Ubuntu 22.04

TFT_eSPI has added support for the T-Dongle-S3 but the change has not been released yet so use the latest code from github. This removes dependency on platformio.

  1. Change to the Arduino IDE library directory.
  2. git clone https://github.com/Bodmer/TFT_eSPI
  3. Change to the TFT_eSPI directory.
  4. Modify User_Setup_Select.h. Comment out the User_Setup.h line and uncomment the Setup209_LilyGo_T_Dongle_S3.h line.
  5. The TFT example should build and run.
  6. Install the OneButton, FastLED, and lvgl libraries using the IDE Library manager.
  7. Copy lv_conf.h to the IDE library directory.
  8. The Factory example should build and run.

After upload, ESP32S3 seems to be stuck in bootloader so it must be power cycled to make it run the new code. This so annoying I now use a USB hub with a power button on each port.