Adafruit_Learning_System_Gu.../CircuitPython_Quick_Starts/CircuitPython_CapTouch.py
2018-03-19 22:00:57 -04:00

12 lines
178 B
Python

import time
import board
import touchio
touch_pad = board.A0
touch = touchio.TouchIn(touch_pad)
while True:
if touch.value:
print("Touched!")
time.sleep(0.05)