Skip to content

Instantly share code, notes, and snippets.

View thomasstoeckert's full-sized avatar
🎢

Thomas Stoeckert thomasstoeckert

🎢
View GitHub Profile
@thomasstoeckert
thomasstoeckert / magicradio.service
Created August 2, 2018 17:17
File used for automatic booting of the MagicRadio
[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
@thomasstoeckert
thomasstoeckert / MagicRadio.ino
Created August 2, 2018 16:58
The Arduino code for the MagicRadio's input
// 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];
RacerX
10/26/2016
Thomas Stoeckert
11/30/2016
Thomas Stoeckert
1/26/2018
WSL pebble building