forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
Description
fireware: 6.2.0 release(any version after 6.0.1)
hardware: any esp32-s2 board
Test code:
import time
import board
import touchio
touch4 = touchio.TouchIn(board.IO4 )
touch5 = touchio.TouchIn(board.IO5 )
touch6 = touchio.TouchIn(board.IO6 )
touch7 = touchio.TouchIn(board.IO7 )
while True:
if touch4.value:
print("touch4 Touched!")
if touch5.value:
print("touch5 Touched!")
if touch6.value:
print("touch6 Touched!")
if touch7.value:
print("touch7 Touched!")
time.sleep(0.5)The Output is :
touch4 Touched!
touch5 Touched!
touch6 Touched!
touch4 Touched!
touch5 Touched!
touch6 Touched!
touch4 Touched!
touch5 Touched!
touch6 Touched!
touch4 Touched!
touch5 Touched!
touch6 Touched!
touch4 Touched!
touch5 Touched!
touch6 Touched!
error: Only the lastest touchpad can work!