/ examples / circuitplayground_red_led_blinky.py
circuitplayground_red_led_blinky.py
 1  """This is the "Hello, world!" of CircuitPython: Blinky! This example blinks the little red LED on
 2  and off!"""
 3  import time
 4  from adafruit_circuitplayground.express import cpx
 5  
 6  while True:
 7      cpx.red_led = True
 8      time.sleep(0.5)
 9      cpx.red_led = False
10      time.sleep(0.5)