ESP32-2424S012 as LVGL light controller / CST816 Support #19487
Replies: 10 comments 59 replies
-
Is it possible that CST816 is not supported in tasmota? The device is not listed here: supported-i2c-devices |
Beta Was this translation helpful? Give feedback.
-
At the moment this touch controllers are supported: XPT2046, FT5206 and GT911 |
Beta Was this translation helpful? Give feedback.
-
Maybe this lib is compatible to your controller https://github.com/fbiego/CST816S ? |
Beta Was this translation helpful? Give feedback.
-
Maybe we need a "universal touch driver" as well. Currently it is using dedicated libs for each touch screen. An global abstraction may be possible. |
Beta Was this translation helpful? Give feedback.
-
Hi guys ! I have the same module and I have EXACTLY the same problem. Display is working fine, but I cannot get the touchpad to work. I am using the CST816D.h driver instead of CST816S.h and I have the exact same result. |
Beta Was this translation helpful? Give feedback.
-
@ZigDuDim The CST816 touch driver is not implemented in Tasmota. |
Beta Was this translation helpful? Give feedback.
-
I got the same display and want to run tasmota on it and make it a smart switch control board. After define the GPIOs according to the schematic drawing, the screen is still no response. Would you please help to post the template (GPIO) of it? Thanks. |
Beta Was this translation helpful? Give feedback.
-
I copied the info from the ESP32C3-2424S012 autoconf, which is from the same PR that added the touchscreen driver. I can read the PCB schematic too. I have the exact same model, and the touch screen worked perfectly in the demo. I'm comparing the Arduino CST816D.h from the demo with the Tasmota CST816S code and all of the taps/presses in Tasmota are set to none, Tasmota only has the swipe gestures. Aliexpress has a download link for the demo software. All the taps/presses return a value, maybe Tasmota doesn't support that, and they are all set to 0 (None).
|
Beta Was this translation helpful? Give feedback.
-
Updated autoconf tested with 13.4 tasmota32c3cdc-lvgl.bin and tasmota32c3-lvgl.bin
|
Beta Was this translation helpful? Give feedback.
-
For those that can't get this device to work: I found that it requires a USB 2.0 USB-C cable. So what I did to make it work, was to use a USB-C to the older USB receptable adapter, and then a cheap 2.0-only USB cable (A to C). |
Beta Was this translation helpful? Give feedback.
-
I got this cheap ESP32 screen: Aliexpress and would love to use it as a litte light controller on my desk.
It is labeld as ESP32-2424S012 and found this schematics:
So we can see that we have these pins in use:
Display (GC9A01):
Touch (CST816D):
We have a ESP32c3 Board so I used the tasmota32c3-lvgl.factory.bin
I used the GC9A01_display.ini with this header:
:H,GC9A01,240,240,16,SPI,3,10,6,7,2,3,-1,-1,80
I had some problems with wrong colors as described in #19339;
So I changed :R to
and removed
:i,20,21
.I set GPIO18 to OptionA 3 for now as it's not used.
For testing I use this simple lvgl-berry script as
autoexec.be
file:and this is how it looks for now:
Now I am trying to get the touch working. I added this line to my display.ini:
:TI1,15,5,4,-1,-1
The problem is that I think that it's not working - becaus I can't use the color wheel.
I also tried the calibration preset but it is not showing properly on the round display and it also seem to not respond to touch inputs at all.
I have absolutely no ide how to debug touch in tasmota so I hope that someone can help me a little.
Beta Was this translation helpful? Give feedback.
All reactions