We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eebb3ba + b59c560 commit ebe5826Copy full SHA for ebe5826
1 file changed
TFT_Gizmo_Dreidel/dreidel.py
@@ -5,6 +5,8 @@
5
from adafruit_circuitplayground.bluefruit import cpb
6
from adafruit_gizmo import tft_gizmo
7
8
+SHAKE_THRESHOLD = 20
9
+
10
#pylint: disable=bad-continuation
11
# define melody to play while spinning (freq, duration)
12
melody = (
@@ -56,7 +58,7 @@
56
58
tile = 0
57
59
while True:
60
# wait for shake
- while not cpb.shake():
61
+ while not cpb.shake(shake_threshold=SHAKE_THRESHOLD):
62
pass
63
# play melody while "spinning" the symbols
64
for note, duration in melody:
0 commit comments