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

10 lines
274 B
Python

"""This is the "Hello, world!" of CircuitPython: Blinky! This example blinks the little red LED on
and off!"""
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)