ST7789V TFT LCD support

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
martinklaus
New user
Posts: 1
Joined: 07 Mar 2021, 18:19

ST7789V TFT LCD support

#1 Post by martinklaus » 07 Mar 2021, 18:27

Hello ESP Easy Community,

I have a LILYGO® TTGO T-Display ESP32 1.14 Inch LCD and want to run it with ESP Easy.
http://www.lilygo.cn/prod_view.aspx?Typ ... t3:50033:3

How can I get the st7789v working?

https://esphome.io/components/display/st7789v.html
ESPHome have some information about it.

Thanks for helping.

TD-er
Core team member
Posts: 9895
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ST7789V TFT LCD support

#2 Post by TD-er » 07 Mar 2021, 20:51

As far as I know, there is not yet a plugin that supports this display..
So right now you can't unless you start coding yourself.

User avatar
Ath
Normal user
Posts: 4331
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ST7789V TFT LCD support

#3 Post by Ath » 07 Mar 2021, 21:45

I have started work on a plugin for that a couple of months ago, but couldn't get it to work then.
With Spring in the air, I've found some fresh inspiration again, so hopefully I can get it to work this time.

I've already 'claimed' P098 for it ;) (started it even before P099 XPT2046 touch...)
/Ton (PayPal.me)

bartgrefte
New user
Posts: 8
Joined: 11 Jan 2025, 18:56

Re: ST7789V TFT LCD support

#4 Post by bartgrefte » 22 Feb 2025, 17:09

Ath wrote: 07 Mar 2021, 21:45 With Spring in the air, I've found some fresh inspiration again, so hopefully I can get it to work this time.
Did you ever got it working? Got a nephew who tried to get a ST7789V working with ESPEasy (most recent display build), unfortunately blank screen. Works with ESPHome so display is not broken or anything.

User avatar
Ath
Normal user
Posts: 4331
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ST7789V TFT LCD support

#5 Post by Ath » 22 Feb 2025, 17:35

This has been working for over 2 years now. So I see no reason why it shouldn't work over there.

What resolution is used for the display? As there are multiple resolutions available with that controller, and that should match with the setting.

Also, don't forget to connect & configure the backlight (I usually set it around 30..50% brightness), or else the display will be very close to black, even when displaying some text.
Alternatively, the backlight pin can be connected to 3V3 for max. brightness.
/Ton (PayPal.me)

bartgrefte
New user
Posts: 8
Joined: 11 Jan 2025, 18:56

Re: ST7789V TFT LCD support

#6 Post by bartgrefte » 22 Feb 2025, 17:46

Ath wrote: 22 Feb 2025, 17:35 This has been working for over 2 years now. So I see no reason why it shouldn't work over there.
Wait, so there is support? The V-version of the ST7789 is not listed on the device settings page, just the non-V version.
Ath wrote: 22 Feb 2025, 17:35 What resolution is used for the display? As there are multiple resolutions available with that controller, and that should match with the setting.
135 x 240
Ath wrote: 22 Feb 2025, 17:35 Also, don't forget to connect & configure the backlight (I usually set it around 30..50% brightness), or else the display will be very close to black, even when displaying some text.
Alternatively, the backlight pin can be connected to 3V3 for max. brightness.
Backlight is connected and turns on.

User avatar
Ath
Normal user
Posts: 4331
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ST7789V TFT LCD support

#7 Post by Ath » 22 Feb 2025, 19:21

The V model is software compatible with the regular ST7789, AFAICS, but there are some alternative initialization sequences I found, though not available by default. What exact build are you using? Then I'll upload a build with that feature enabled.
/Ton (PayPal.me)

bartgrefte
New user
Posts: 8
Joined: 11 Jan 2025, 18:56

Re: ST7789V TFT LCD support

#8 Post by bartgrefte » 23 Feb 2025, 18:48

Ath wrote: 22 Feb 2025, 19:21 The V model is software compatible with the regular ST7789, AFAICS, but there are some alternative initialization sequences I found, though not available by default. What exact build are you using? Then I'll upload a build with that feature enabled.
My nephew tried ESP_Easy_mega_20241222_display_ESP32_4M316k.factory.bin

User avatar
Ath
Normal user
Posts: 4331
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ST7789V TFT LCD support

#9 Post by Ath » 23 Feb 2025, 21:23

I've crafted a special edition of the Display build for ESP32, that includes 3 alternative initializations for ST7789, available in this .zip:
ESP_Easy_mega_20250223_display_ESP32_4M316k.zip
(2.29 MiB) Downloaded 46 times
NB: Easiest way of updating is via the Update Firmware button on the Tools page (you'll have to unpack the .zip file first), then choose the regular .bin file (not the factory.bin) for upload.

If none of these ST7789 alternatives work, you can also try the ST7735 135x240 setting, as, despite what these (often Chinese) manufacturers claim, they often write something different on the package from what's actually installed on the board :shock:.
/Ton (PayPal.me)

bartgrefte
New user
Posts: 8
Joined: 11 Jan 2025, 18:56

Re: ST7789V TFT LCD support

#10 Post by bartgrefte » 25 Feb 2025, 17:23

Ath wrote: 23 Feb 2025, 21:23 I've crafted a special edition of the Display build for ESP32, that includes 3 alternative initializations for ST7789, available in this .zip:
ESP_Easy_mega_20250223_display_ESP32_4M316k.zip
Gonna send it to my nephew, then wait the result, thanks :)
Ath wrote: 23 Feb 2025, 21:23 NB: Easiest way of updating is via the Update Firmware button on the Tools page (you'll have to unpack the .zip file first), then choose the regular .bin file (not the factory.bin) for upload.
That's a bit difficult, since there's currently ESPHome running on it ;)
Ath wrote: 23 Feb 2025, 21:23 If none of these ST7789 alternatives work, you can also try the ST7735 135x240 setting, as, despite what these (often Chinese) manufacturers claim, they often write something different on the package from what's actually installed on the board :shock:.
Hmm, but if there's a different controller in there, that wouldn't explain why setting ST7789V in ESPHome works, does it?

User avatar
Ath
Normal user
Posts: 4331
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ST7789V TFT LCD support

#11 Post by Ath » 25 Feb 2025, 21:25

bartgrefte wrote: 25 Feb 2025, 17:23 Hmm, but if there's a different controller in there, that wouldn't explain why setting ST7789V in ESPHome works, does it?
Looking at the ESPHome code, your nephew should get positive results with one of the "(alt1)" to "(alt3)" configurations, as they are very similar to what is used there for initialization. (This probably originates from the same source... :roll:)
/Ton (PayPal.me)

bartgrefte
New user
Posts: 8
Joined: 11 Jan 2025, 18:56

Re: ST7789V TFT LCD support

#12 Post by bartgrefte » 16 Mar 2025, 17:38

Ath wrote: 25 Feb 2025, 21:25 Looking at the ESPHome code, your nephew should get positive results with one of the "(alt1)" to "(alt3)" configurations, as they are very similar to what is used there for initialization. (This probably originates from the same source... :roll:)
Sorry for the late update, he's been a bit busy lately.

None of the 3 options resulted in a working display.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 18 guests