Adafruit_CircuitPython_Circ.../examples/circuitplayground_neopixel_0_1.py
2019-06-07 15:11:11 -04:00

8 lines
244 B
Python

"""This example lights up the first and second NeoPixel, red and blue respectively."""
from adafruit_circuitplayground.express import cpx
cpx.pixels.brightness = 0.3
while True:
cpx.pixels[0] = (255, 0, 0)
cpx.pixels[1] = (0, 0, 255)