Skip to content

Instantly share code, notes, and snippets.

@Jivemofo
Jivemofo / gist:ac370772bafba5f0ff6312017b4bd2d0
Last active June 26, 2019 21:14 — forked from seantibor/gist:f6ca28987b419a701b6349055450939b
Circuit Playground Express Led Button Test
# 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 = 6
RED = (255, 0, 0)
GREEN = (0, 255, 0)
@Jivemofo
Jivemofo / gist:a6403b1b5a8cbdc82eb403f54f6336f9
Last active June 26, 2019 20:29 — forked from seantibor/gist:608186579b2683265d56aa457f7c4b91
Circuit Playground Express Led Button Test
# 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