← index #8511PR #8955
Off-topic · high · value 1.371
QUERY · ISSUE

machine.TouchPad should be documented

openby mattytrentiniopened 2022-04-09updated 2023-10-30
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.

mergedby Wind-stormgeropened 2022-07-24updated 2023-01-06
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.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied