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 = 6 | |
RED = (255, 0, 0) | |
GREEN = (0, 255, 0) |
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 | |
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
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) |
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
#include <FastLED.h> | |
#include <Adafruit_NeoPixel.h> | |
#define NUM_LEDS 16 | |
#define DATA_PIN 3 | |
CRGB leds[NUM_LEDS]; | |
int |