Closed markusdd closed 10 months ago
I'm pretty sure that tasmota32s3-qio_opi.bin
includes LVGL, as this feature is included in the CDC variant of the same build.
I'd try with the "Sunton-S3-Display" auto-configuration. While this was likely created for the 5" variant, they seem to be pretty similar, same resolution.
I'm pretty sure that
tasmota32s3-qio_opi.bin
includes LVGL, as this feature is included in the CDC variant of the same build.I'd try with the "Sunton-S3-Display" auto-configuration. While this was likely created for the 5" variant, they seem to be pretty similar, same resolution.
helpful info, thx. They are indeed similar regading the MCU but the touch driver is a different one.
I have now gone through their demo files and came up wiht the following ini file:
:H,EK9716,800,480,16,RGB,41,40,39,42,15,7,6,5,4,9,46,3,8,16,1,14,21,47,48,45,16
:S,2,1,1,0,40,20
:V,0,210,30,16,0,22,13,10,1
:0,00
:1,01
:2,02
:3,03
:TI1,5d,20,19,-1,38
#
Throughts?
I'd first get the display to work without touch.
FWIW (IDK how much), this table suggests touch GT911 for both 5" and 7" https://github.com/rzeldent/esp32-smartdisplay
When I wrote "pretty similar" that was not at all about the MCU, but the rest.
I think touch is non-critical. As you say, this seems very similar to the sunton 5" and also other displays which use this controller, so I feel confident about that, it is essentially the I2C address and the lines.
I am currently working through the schematics from the docs package to compare the pins but if they really do match all that is needed should be the display config from above.
The display.ini
file in the 5" autoconf is:
:H,ST7262,800,480,16,RGB,40,41,39,42,2,15,16,4,45,48,47,21,14,8,3,46,9,1,5,6,7,14
:S,2,1,1,0,40,20
:V,0,8,4,8,0,8,4,8,1
:0,00
:1,01
:2,02
:3,03
:TI1,5d,*,*,-1,38
#
And template:
{"NAME":"SUNTON","GPIO":[1,1,1,1,1,1,1,1,1,1,6720,704,736,672,1,1,1,1,1,640,608,1,0,0,0,0,0,6210,1,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":1}
yes, I have checked the schematics now. Confusion for touch stemmed from the fact that there were resistive and capacitive touch variants for the 5 inch, the 5 inch capacitive variant uses the same touch controller as the 7 inch. The wiring for touch, SD card, UART etc is identical, but the panels have wildly different parameters and pin assignments. See the comparison here:
So in my book that means we can reuse the template but need a new display.ini.
Can you point me to where the autoconf data is located in the repo?
Also: do you agree with my observation?
https://github.com/tasmota/autoconf/tree/main/raw/esp32s3/SunTon-S3-Display
Yeah, what you post does look like gpio assignments needing to be remapped. What's important are what specific display controller chips the panels have, and setup of those.
yes.
the 5" uses a ST7262 as driver and the 7" uses a EK9716.
So essentially I need to make a PR to the autoconf repo if my display.ini works.
it's a bit of a bummer that the current module is just called SunTon-S3-Display as this obviously now just applies to the 5 inch.
I will propose to rename it to SunTon-S3-Display-5inch and add a SunTon-S3-Display-7inch next to it.
Did you also get touch to work?
Did you also get touch to work?
Yes. As mentioned somewhat buried above the capacitive version (there is no resistive one for 7") is identical to the 5" capacitive one, so the :TI1 line is the same
Hi. After consulting the LVGL, Berry and Display Docs it seems that we need a device template and universal display driver config for this board to work with Tasmota. These seem to be pretty nice, but also very new devices.
The links to it is here: https://de.aliexpress.com/item/1005004952726089.html?pdp_npi=4%40dis%21EUR%21%E2%82%AC%2025%2C14%21%E2%82%AC%2025%2C14%21%21%21192.91%21192.91%21%402101c2d217038451419932055d6c3e%2112000031135431788%21sh01%21DE%21172906472%21&spm=a2g0o.store_pc_home.productList_2007684931608.pic_3&gatewayAdapt=glo2deu
There is a also (luckily) a relatively good docs package available here: http://pan.jczn1688.com/directlink/1/ESP32%20module/7.0inch_ESP32-8048S070.zip?spm=a2g0o.detail.1000023.1.735afVh9fVh9NX&file=7.0inch_ESP32-8048S070.zip
A TLDR from the docs that I could gather is as follows:
So what is needed is essentially a Tasmota32-S3-QIO-OPI-LVGL image as a base. Is that available as a prebuild somewhere? Web Installer has this, but it seems this does not have LVGL?
As for the display and touch I have skimmed through their docs and demos. They use and adapted lv_conf.h (but seems relatively straightforward). Also, they have the pin config for the GT911 and the RGB mode in arduino GFX driver in the code. I ahve attached the relevant 3 files. touch_display_lvconf.zip
relevant sections seem to be:
lv-conf.h:
LvglWidgets.ino:
touch.h:
Now my goal is: I want to get this going to build a berry lvgl GUI with Tasmota on that thing, but despite all the docs I am a bit lost now as to what to prepare when and where.
Based on the info I dug up, can someone assist? I am also happy to then feed back my findings and commit a device template once I have it working.