We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67c2353 + ea0cde2 commit 9407dd8Copy full SHA for 9407dd8
1 file changed
Rotary_Trinkey/CircuitPython_Cap_Touch_Example/code.py
@@ -0,0 +1,11 @@
1
+"""CircuitPython Capacitive Touch Example for Rotary Trinkey"""
2
+import time
3
+import board
4
+import touchio
5
+
6
+touch = touchio.TouchIn(board.TOUCH)
7
8
+while True:
9
+ if touch.value:
10
+ print("Pad touched!")
11
+ time.sleep(0.1)
0 commit comments