Adafruit_Learning_System_Gu.../NeoKey_Trinkey/CircuitPython_Touch_Example/code.py
2021-05-26 12:51:50 -04:00

11 lines
207 B
Python

"""NeoKey Trinkey Capacitive Touch Example"""
import time
import board
import touchio
touch = touchio.TouchIn(board.TOUCH)
while True:
if touch.value:
print("Pad touched!")
time.sleep(0.1)