We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82ba9e4 + fba4b47 commit fc2c9d6Copy full SHA for fc2c9d6
examples/circuitplayground_tapdetect.py
@@ -1,8 +1,9 @@
1
-"""This example prints to the serial console when the board is tapped."""
+"""This example prints to the serial console when the board is double-tapped."""
2
from adafruit_circuitplayground import cp
3
4
-cp.detect_taps = 1
+# Change to 1 for single-tap detection.
5
+cp.detect_taps = 2
6
7
while True:
8
if cp.tapped:
- print("Single tap detected!")
9
+ print("Tapped!")
0 commit comments