Updated to include else

This commit is contained in:
Kattni Rembor 2018-05-28 18:57:56 -04:00
parent 038de5ea29
commit 6a753554d4

View file

@ -4,3 +4,5 @@ while True:
if cpx.shake(shake_threshold=20): if cpx.shake(shake_threshold=20):
print("Shake detected!") print("Shake detected!")
cpx.red_led = True cpx.red_led = True
else:
cpx.red_led = False