Adafruit_CircuitPython_Circ.../examples/circuitplayground_red_led_blnky_short.py
2019-06-07 14:45:09 -04:00

8 lines
293 B
Python

"""This is the "Hello, world!" of CircuitPython: Blinky! This example blinks the little red LED on
and off! It's a shorter version of the other Blinky example."""
import time
from adafruit_circuitplayground.express import cpx
while True:
cpx.red_led = not cpx.red_led
time.sleep(0.5)