DIsplay recognize on ESP32-S2 T8

Hello,
I've have Lilygo ESP32-S2 T8 v1.1 board (CH340, display, microSD, WiFi, etc).


Coding at Arduino IDE 2.2.1. But cannot make display work anyhow. At sale page there only very simple text: "You must download the board definition for one of the other esp32-s2 ttgo".

I've already tried samples from ESP32 samples library for "ESP32S2 Dev Module" - most samples for TFT just can't compile with error "No such directory or file avr/pgmspace.h". WTF?!
Then I've try "TFT_SPI" from GitHub for "TTGO-T-Display" and "Lilygo ESP32 T-Display-S3" - it compiles correctly, but display is still off.
Then I've try "U8g2_for_TFT_eSPI" - the same.

But some samples without display works correctly, so board function right. Also when I've start it first time display also works correctly and show off some colored logo, so display is also OK.
But because display is soldered, I can't see it backside with model number and don't see used pins, etc.

The only 1 positive effect on the display was made by Arduino_GFX HelloWorld - display backlit start to shine, but screen itself is still black.

I've found only this thread with answer which must be useful, but don't know how to use it at Arduino IDE?? Place before coding??

How to make display work? How to determine the display model?

I just don't know how to add custom configs, now display works with those configs:

https://github.com/Xinyuan-LilyGO/LilyGo-T-Display-S2/blob/master/Arduino_Exapmles/libdeps/TFT_eSPI/User_Setups/Setup71_ESP32_S2_ST7789.h
https://github.com/Bodmer/TFT_eSPI/blob/master/User_Setups/Setup71_ESP32_S2_ST7789.h

Just add to the top of the code sketch:
#include <../TFT_eSPI/User_Setups/Setup71_ESP32_S2_ST7789.h>

Resolved.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.