Adding touch example.

This commit is contained in:
Kattni Rembor 2021-06-02 13:29:39 -04:00
parent 67c2353045
commit ea0cde2ddf

View file

@ -0,0 +1,11 @@
"""CircuitPython Capacitive Touch Example for Rotary Trinkey"""
import time
import board
import touchio
touch = touchio.TouchIn(board.TOUCH)
while True:
if touch.value:
print("Pad touched!")
time.sleep(0.1)