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.
This commit is contained in:
parent
8421c9bc51
commit
7fcaf09402
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from adafruit_circuitplayground.express import cpx
|
||||
|
||||
cpx.red_led = True
|
||||
while True:
|
||||
cpx.red_led = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue