diff --git a/CircuitPython_Made_Easy_On_CPX/cpx_shake_threshold_red_led.py b/CircuitPython_Made_Easy_On_CPX/cpx_shake_threshold_red_led.py index e2b48b381..29d4cd7cb 100644 --- a/CircuitPython_Made_Easy_On_CPX/cpx_shake_threshold_red_led.py +++ b/CircuitPython_Made_Easy_On_CPX/cpx_shake_threshold_red_led.py @@ -4,3 +4,5 @@ while True: if cpx.shake(shake_threshold=20): print("Shake detected!") cpx.red_led = True + else: + cpx.red_led = False