Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Tibor seantibor

View GitHub Profile
@seantibor
seantibor / gist:f6ca28987b419a701b6349055450939b
Last active Jun 26, 2019 — forked from Jivemofo/gist:a6403b1b5a8cbdc82eb403f54f6336f9
Circuit Playground Express Led Button Test
View gist:f6ca28987b419a701b6349055450939b
# 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)
@seantibor
seantibor / gist:608186579b2683265d56aa457f7c4b91
Last active Jun 26, 2019 — forked from Jivemofo/gist:4d6525387b91a2e93755b353a9f1cf7a
Circuit Playground Express Led Button Test
View gist:608186579b2683265d56aa457f7c4b91
# 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