Skip to content

Commit 30d4142

Browse files
committed
added simple tap detect example
1 parent 167a88b commit 30d4142

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/tapodetectsimple.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from adafruit_circuitplayground.express import cpx
2+
3+
cpx.detect_taps = 1
4+
5+
while True:
6+
if cpx.tapped:
7+
print("Single tap detected!")

0 commit comments

Comments
 (0)