Adafruit_Learning_System_Gu.../CircuitPython_Quick_Starts/CircuitPython_CapTouch.py
2018-03-09 18:16:01 -05:00

10 lines
No EOL
211 B
Python

import time
import board
import touchio
touch_A0 = touchio.TouchIn(board.A0) # Will not work on Circuit Playground Express!
while True:
if touch_A0.value:
print("Touched A0!")
time.sleep(0.05)