The esp32s3's peripheral has a rather similar structure as the esp32's one, but judging from the datasheet, the esp32s2's looks a little more different.
To get a starting point, I made have a very rough, incomplete and not working first attempt for the esp32s3, but at least it includes the pin definitions: https://github.com/jounathaen/esp-hal/tree/touch-esp32s3
(As I don't have any hardware, (and honestly, also no motivating use-case), I will not continue with the implementation myself.)
As of https://github.com/esp-rs/esp-hal/pull/1873, esp-hal only has touch support for the
esp32
. However, theesp32s2
andesp32s3
do also have touch peripherals.The
esp32s3
's peripheral has a rather similar structure as theesp32
's one, but judging from the datasheet, theesp32s2
's looks a little more different.To get a starting point, I made have a very rough, incomplete and not working first attempt for the
esp32s3
, but at least it includes the pin definitions: https://github.com/jounathaen/esp-hal/tree/touch-esp32s3 (As I don't have any hardware, (and honestly, also no motivating use-case), I will not continue with the implementation myself.)