Update code.py
This commit is contained in:
parent
75ee203cb2
commit
a340b675d1
1 changed files with 1 additions and 1 deletions
|
|
@ -50,5 +50,5 @@ while True:
|
||||||
if lis3dh.shake(shake_threshold=10): # can also adjust sensitivity here
|
if lis3dh.shake(shake_threshold=10): # can also adjust sensitivity here
|
||||||
print("Shake detected!")
|
print("Shake detected!")
|
||||||
play_file(random.choice(wavefiles))
|
play_file(random.choice(wavefiles))
|
||||||
# hang out for tiny bit
|
# hang out for tiny bit
|
||||||
time.sleep(0.05)
|
time.sleep(0.05)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue