Skip to content

ESP32S2: TouchIO default threshold is unsatisfactory #4311

@hierophect

Description

@hierophect

Running the following on a Saola 1 Wrover board:

import time
import board
import touchio

touch_IO1 = touchio.TouchIn(board.IO1)
touch_IO2 = touchio.TouchIn(board.IO2)

while True:
    if touch_IO.value:
        print("Touched IO1!")
    if touch_IO.value:
        print("Touched IO2!")
    time.sleep(0.05)

will result in A1 constantly reading as touched. If additional pins are added (IO3, IO4, etc) then all pins before the last one created will constantly trigger.

@ladyada ping so this is on your radar. I'm investigating now.

Metadata

Metadata

Assignees

Labels

bugespressifapplies to multiple Espressif chips

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions