Updated to include else
This commit is contained in:
parent
038de5ea29
commit
6a753554d4
1 changed files with 2 additions and 0 deletions
|
|
@ -4,3 +4,5 @@ while True:
|
|||
if cpx.shake(shake_threshold=20):
|
||||
print("Shake detected!")
|
||||
cpx.red_led = True
|
||||
else:
|
||||
cpx.red_led = False
|
||||
|
|
|
|||
Loading…
Reference in a new issue