Skip to content

CircuitPython 10.3.0-alpha.4 Touchio Bug #11150

Description

@xiaomewo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions