Closed ilnavigante closed 1 month ago
hi, ilnavigante
The touch issue has already been tested and investigated.
There are two main reasons why Arduino is slower compared to ESP-IDF:
If you're accustomed to using GFX for screen rendering, Arduino should meet your needs. However, if LVGL is required, developing with ESP-IDF would be a more suitable option.
Hey,
I was running the LVGL demo for Arduino, using the BOARD_SC07 (WT32S3-43H), and as soon as I tried the
lv_demo_widgets()
for testing the whole system, I found out the touch controller was very glitchy.I think the reason is because the CST3240 not only reports TOUCH_PRESSED events, but also TOUCH_RELEASE ones, and the LVGL library doesn't support that.
My quick fix was to copy the event check from the driver in the QMSD repository,
QMSD-ESP32-BSP/components/qmsd_touch/cst3240/cst3240.c
:and ignore any RELEASE event,
PanelLan_esp32_arduino/src/board/sc07/Touch_CST3240.cpp
:It worked for me, I don't know if it's right. Also, the Arduino demo seems to run the display 4 times slower than the ESP demo one, but that's another issue, don't know if it's related somehow.