From 7fcaf094022359238c52ead782832cfaf4d92aae Mon Sep 17 00:00:00 2001 From: Dorota <30510565+dotters@users.noreply.github.com> Date: Sun, 9 Dec 2018 19:38:58 +0100 Subject: [PATCH] Update cpx_red_led.py (and guidelines) Then we have something new: a while statement. while True: essentially means, "Forever do:". while True: creates a loop. When there is a loop, the code will forever go through the code inside the loop. All code that is indented under while True: is "inside" the loop. --- CircuitPython_Made_Easy_On_CPX/cpx_red_led.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CircuitPython_Made_Easy_On_CPX/cpx_red_led.py b/CircuitPython_Made_Easy_On_CPX/cpx_red_led.py index ec94c7a8..d8f7b8aa 100644 --- a/CircuitPython_Made_Easy_On_CPX/cpx_red_led.py +++ b/CircuitPython_Made_Easy_On_CPX/cpx_red_led.py @@ -1,3 +1,4 @@ from adafruit_circuitplayground.express import cpx -cpx.red_led = True +while True: + cpx.red_led = True