From b6c39cd1f2ce06e99a61c395ea90578084f79a68 Mon Sep 17 00:00:00 2001 From: Kattni Rembor Date: Wed, 23 May 2018 17:10:00 -0400 Subject: [PATCH] Added simple red LED code, renamed blinky --- CircuitPython_Made_Easy_On_CPX/cpx_red_led.py | 7 +------ CircuitPython_Made_Easy_On_CPX/cpx_red_led_blinky.py | 8 ++++++++ .../{cpx_red_led_short.py => cpx_red_led_blnky_short.py} | 0 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 CircuitPython_Made_Easy_On_CPX/cpx_red_led_blinky.py rename CircuitPython_Made_Easy_On_CPX/{cpx_red_led_short.py => cpx_red_led_blnky_short.py} (100%) diff --git a/CircuitPython_Made_Easy_On_CPX/cpx_red_led.py b/CircuitPython_Made_Easy_On_CPX/cpx_red_led.py index c19239846..ec94c7a85 100644 --- a/CircuitPython_Made_Easy_On_CPX/cpx_red_led.py +++ b/CircuitPython_Made_Easy_On_CPX/cpx_red_led.py @@ -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 diff --git a/CircuitPython_Made_Easy_On_CPX/cpx_red_led_blinky.py b/CircuitPython_Made_Easy_On_CPX/cpx_red_led_blinky.py new file mode 100644 index 000000000..c19239846 --- /dev/null +++ b/CircuitPython_Made_Easy_On_CPX/cpx_red_led_blinky.py @@ -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) diff --git a/CircuitPython_Made_Easy_On_CPX/cpx_red_led_short.py b/CircuitPython_Made_Easy_On_CPX/cpx_red_led_blnky_short.py similarity index 100% rename from CircuitPython_Made_Easy_On_CPX/cpx_red_led_short.py rename to CircuitPython_Made_Easy_On_CPX/cpx_red_led_blnky_short.py