Skip to content

Instantly share code, notes, and snippets.

View michaelfdeberry's full-sized avatar

Michael DeBerry michaelfdeberry

View GitHub Profile
@michaelfdeberry
michaelfdeberry / Instructions
Last active April 14, 2024 14:38
Python 3 relay toggle for Moode Audio
Change the relay pin to the GPIO pin for your relay.
Save the contents of relaytoggle.py script to /home/pi/relaytoggle.py
Save the contents of relaytoggle.service script to /lib/systemd/system/relaytoggle.service
Run the following commands
sudo systemctl enable relaytoggle
sudo service relaytoggle start