CircuitPython version and board name
CircuitPython 10.3.0-alpha.4 with Seeed Xiao ESP32S3
Code/REPL
import board
import touchio
import time
# 测试D0触摸引脚
touch_key = touchio.TouchIn(board.D0)
# 调低阈值,做到一碰就触发
touch_key.threshold = touch_key.raw_value + 25
while True:
# 打印数值:触摸=1,松开=0
print(touch_key.value)
time.sleep(0.15)
Behavior
False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
Description
使用touch io无法读取
Additional information
No response
CircuitPython version and board name
Code/REPL
Behavior
False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
0 False
Description
使用touch io无法读取
Additional information
No response