esp-rs / esp-hal

no_std Hardware Abstraction Layers for ESP32 microcontrollers
https://docs.esp-rs.org/esp-hal/
Apache License 2.0
702 stars 192 forks source link

Implement touch support for `esp32s2` and `esp32s3`. #1905

Open jounathaen opened 1 month ago

jounathaen commented 1 month ago

As of https://github.com/esp-rs/esp-hal/pull/1873, esp-hal only has touch support for the esp32. However, the esp32s2 and esp32s3 do also have touch peripherals.

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.)

playfulFence commented 3 weeks ago

I'm taking esp32s2.