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
import requests | |
import os | |
from datetime import datetime, timedelta | |
destination_path = "shows" | |
# ids from https://api.kexp.org/v2/shows/ | |
programs = [ | |
3, # expansions | |
5, # midnight in a perfect world |
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
# run using Git Bash, or equivalent | |
# run from your local copy of the ffgl repo | |
# first parameter is the effect filename to use. CamelCase, no spaces | |
create_effect () { | |
cp build/windows/AddSubtract.vcxproj build/windows/$1.vcxproj | |
sed -i "/ProjectGuid/d" build/windows/$1.vcxproj | |
sed -i "s/AddSubtract/$1/g" build/windows/$1.vcxproj | |
cp -r source/plugins/AddSubtract source/plugins/$1 | |
cd source/plugins/$1 |
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
import aioserial | |
import asyncio | |
# find port name by printing them all out | |
import serial.tools.list_ports | |
print([comport.device for comport in serial.tools.list_ports.comports()]) | |
# callback for values. try setting this to a useful function | |
listener = None |
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
/****************************************************************************** | |
rgb-plus-buttons.ino | |
Byron Jacquot @ SparkFun Electronics | |
1/6/2015 | |
Example to drive the RGB LEDs and scan the buttons of the RGB button pad. | |
Exercise 3 in a series of 3. | |
https://learn.sparkfun.com/tutorials/button-pad-hookup-guide/exercise-3-rgb-leds-and-buttons |