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:
Dorota 2018-12-09 19:38:58 +01:00 committed by GitHub
parent 8421c9bc51
commit 7fcaf09402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
from adafruit_circuitplayground.express import cpx
cpx.red_led = True
while True:
cpx.red_led = True