Open
Description
CircuitPython version
Adafruit CircuitPython 9.1.2 on 2024-08-22; Waveshare ESP32-S3-Zero with ESP32S3
Code/REPL
from touchio import TouchIn
import board
import time
pins = []
pins.append(TouchIn(board.D13))
pins.append(TouchIn(board.D12))
pins.append(TouchIn(board.D11))
pins.append(TouchIn(board.D10))
pins.append(TouchIn(board.D9))
pins.append(TouchIn(board.D8))
pins.append(TouchIn(board.D7))
while True:
i = 0
for pin in pins:
print(i, "raw_value: ", pin.raw_value)
i += 1
print()
time.sleep(.01)
Behavior
The example code prints out the raw_values of all touch pins. When 0 or 1 pins are touched, the values update extremely fast (updating every loop iteration). However, whenever 2 or more pins are touch simultaneously, All of the other pin's raw_values update extremely slowly (in some cases taking several seconds to update).
Description
No response
Additional information
My goal is to be able to accurately/quickly handle simultaneous touch inputs.