circuitplayground_slide_switch_red_led_short.py
1 """This example uses the slide switch to control the little red LED. When the switch is to the 2 right it returns False, and when it's to the left, it returns True.""" 3 from adafruit_circuitplayground.express import cpx 4 5 while True: 6 cpx.red_led = cpx.switch