guild icon
Toit
#ESP32 S3 Touch Support
Thread channel in help
Geoff
Geoff 04/13/2026 07:14 PM
Does toit support the new touch system on the ESP32 S3? I get an Exception error with touch.threshold that Gemini claims is an incompatibility.
GeoffOPGeoff
Does toit support the new touch system on the ESP32 S3? I get an Exception error with touch.threshold that Gemini claims is an incompatibility.
floitsch
floitsch 04/15/2026 08:59 AM
I believe we tested touch on the S3.
Can you send me a stacktrace so I can investigate?
floitsch
floitsch 04/15/2026 08:59 AM
Also: if you have information about the "new touch system" send them too. (just in case).
Geoff
Geoff 04/18/2026 06:57 PM
I can not reproduce the touch.threshold error. Here is an (AI-generated) summary of differences:

Summary of Changes for Developers
Inverse Logic: On the original ESP32, a "touch" is detected when the raw value falls below a threshold. On the ESP32-S3, the sensing logic is redesigned such that the value significantly increases when a finger is detected.
Resource Management: In the S3 documentation, you no longer just call a pin number. You must now initialize a Touch Controller and then allocate specific Touch Channels to that controller.
Stability: The S3 includes a dedicated hardware internal filter (touch_sensor_filter_config_t) that handles benchmark updates and noise reduction automatically, whereas the ESP32 often required more manual software-side filtering to prevent "ghost" touches.

If this looks unfamiliar, then I doubt touch is supported currently and I will be going manual pushbutton. Thanks for looking!
GeoffOPGeoff
I can not reproduce the touch.threshold error. Here is an (AI-generated) summary of differences: Summary of Changes for Developers Inverse Logic: On the original ESP32, a "to...
floitsch
floitsch 04/18/2026 08:32 PM
I am almost certain that we have a hardware test for touch, but the test currently needs to be run by hand which hasn't happened for some time. I will check
floitsch
floitsch 04/21/2026 08:32 PM
I think you are right. We seem to have broken esp32s3's touch. I will try to fix it asap. (unfortunately quite busy right now, but it's high on my list).
Geoff
Geoff 04/23/2026 07:43 PM
Do not rush on my account, but thank you.
floitsch
floitsch 04/23/2026 08:20 PM
Fix is already uploaded
Geoff
Geoff 05/01/2026 12:03 AM
Installed 1.64.0 but touch still looks inoperative on ESP32-S3.
GeoffOPGeoff
Installed 1.64.0 but touch still looks inoperative on ESP32-S3.
floitsch
floitsch 05/01/2026 07:05 AM
1.64.0 only updated to the SDK that was released two weeks ago. The fix wasn't in there yet.
The next SDK should have it.
10 messages in total