Update code.py

This commit is contained in:
Mike Barela 2018-11-20 18:00:19 -05:00 committed by GitHub
parent 75ee203cb2
commit a340b675d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)