This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this program detects a button press and lights up a new Led, 2nd button changes colors | |
from adafruit_circuitplayground.express import cpx, time | |
cpx.pixels.brightness = 0.3 | |
cpx.pixels.fill((0, 0, 0)) | |
# pick how many colors to use | |
color_mode = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this program detects a button press and lights up a new Led, 2nd button changes colors | |
from adafruit_circuitplayground.express import cpx, time | |
# pick how many colors to use | |
color_mode = 3 | |
RED = (255, 0, 0) | |
GREEN = (0, 255, 0) |