Added simple red LED code, renamed blinky
This commit is contained in:
parent
67c2a02bbd
commit
b6c39cd1f2
3 changed files with 9 additions and 6 deletions
|
|
@ -1,8 +1,3 @@
|
|||
import time
|
||||
from adafruit_circuitplayground.express import cpx
|
||||
|
||||
while True:
|
||||
cpx.red_led = True
|
||||
time.sleep(0.5)
|
||||
cpx.red_led = False
|
||||
time.sleep(0.5)
|
||||
cpx.red_led = True
|
||||
|
|
|
|||
8
CircuitPython_Made_Easy_On_CPX/cpx_red_led_blinky.py
Normal file
8
CircuitPython_Made_Easy_On_CPX/cpx_red_led_blinky.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import time
|
||||
from adafruit_circuitplayground.express import cpx
|
||||
|
||||
while True:
|
||||
cpx.red_led = True
|
||||
time.sleep(0.5)
|
||||
cpx.red_led = False
|
||||
time.sleep(0.5)
|
||||
Loading…
Reference in a new issue