Skip to content

Commit 9cf83e8

Browse files
authored
Merge pull request #199 from kattni/cpx-express-lib
Updated to include else
2 parents 06094c9 + 6a75355 commit 9cf83e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CircuitPython_Made_Easy_On_CPX/cpx_shake_threshold_red_led.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
if cpx.shake(shake_threshold=20):
55
print("Shake detected!")
66
cpx.red_led = True
7+
else:
8+
cpx.red_led = False

0 commit comments

Comments
 (0)