This file contains hidden or 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
[Unit] | |
Description=Magic Radio | |
After=multi-user.targer | |
[Service] | |
Type=simple | |
WorkingDirectory=/home/pi/MagicRadio/ | |
ExecStart=/usr/bin/python /home/pi/MagicRadio/MagicRadio.py | |
Restart=on-abort |
This file contains hidden or 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
// Adjust this to fit your smoothing desires. I've found 5 is the best balance of delay/smoothing | |
// Increasing this makes it a bit more sluggish to respond to quick changes | |
const int numReadings = 5; | |
// Set up pin definitions | |
int volumePot = A0; | |
int tuningPot = A5; | |
// Set up the variables for smoothing/reading with volume and tuning pots | |
int volumeReadings[numReadings]; |
This file contains hidden or 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
RacerX | |
10/26/2016 | |
Thomas Stoeckert | |
11/30/2016 | |
Thomas Stoeckert | |
1/26/2018 | |
WSL pebble building |