added simple tap detect example
This commit is contained in:
parent
167a88bfc8
commit
30d41421f9
1 changed files with 7 additions and 0 deletions
7
examples/tapodetectsimple.py
Normal file
7
examples/tapodetectsimple.py
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
from adafruit_circuitplayground.express import cpx
|
||||||
|
|
||||||
|
cpx.detect_taps = 1
|
||||||
|
|
||||||
|
while True:
|
||||||
|
if cpx.tapped:
|
||||||
|
print("Single tap detected!")
|
||||||
Loading…
Reference in a new issue