Skip to content

Commit fc2c9d6

Browse files
authored
Merge pull request adafruit#81 from kattni/tap-to-doubletap
Tap to doubletap
2 parents 82ba9e4 + fba4b47 commit fc2c9d6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
"""This example prints to the serial console when the board is tapped."""
1+
"""This example prints to the serial console when the board is double-tapped."""
22
from adafruit_circuitplayground import cp
33

4-
cp.detect_taps = 1
4+
# Change to 1 for single-tap detection.
5+
cp.detect_taps = 2
56

67
while True:
78
if cp.tapped:
8-
print("Single tap detected!")
9+
print("Tapped!")

0 commit comments

Comments
 (0)