QUERY · ISSUE
machine.TouchPad should be documented
docs
machine.TouchPad, implemented in machine_touchpad.c for the esp32 port, is only documented in the ESP32 Quick Ref: Capacitive touch.
It should also have a machine.TouchPad entry.
CANDIDATE · PULL REQUEST
esp32: Fix TouchPad on esp32s2 and esp32s3.
port-esp32
Fixed the issue that TouchPad failed on esp32s2 and esp32s3
after compiling firmware with ESP-IDF v4.4 and higher versions.
Addresses issue #8048 .
Solution proposed by this contributor https://github.com/micropython/micropython/issues/8048#issuecomment-1107432527 .
Tested with this code passed:
from machine import TouchPad, Pin
# ESP32S3 TouchPad on GPIO 1~14
t = TouchPad(Pin(i))
print(t.read())
Specific readings depend on the PCB and its peripherals.