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
@Jivemofo
Jivemofo / gist:4d6525387b91a2e93755b353a9f1cf7a
Created June 25, 2019 22:17
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
@Jivemofo
Jivemofo / gist:2fe2353f8423ec0cad563101cb7b1c89
Last active May 15, 2019 00:20
datetime_solution_pybite_67
from datetime import date, timedelta
start_100days = date(2017, 3, 30)
pybites_founded = date(2016, 12, 19)
pycon_date = date(2018, 5, 8)
def get_hundred_days_end_date():
"""Return a string of yyyy-mm-dd"""
t = timedelta(days = 100)
#include <FastLED.h>
#include <Adafruit_NeoPixel.h>
#define NUM_LEDS 16
#define DATA_PIN 3
CRGB leds[NUM_LEDS];
int