Hey all,
I am new to Pi's I have used Arduino before but frankly my coding abilities are lacking/very rusty.
I am trying to make a Pi zero that is powered from and outside power supply of 5V and does three things
-Play a sound file played on startup
-Have a safe shutdown sequence activated by button
-Have a sound file played at the press of a button
I already figured out how to get the sound to play on startup by adding the command in /etc/rc.local but I am having trouble getting the shutdown script to run as well. I was curious if there was a way to write a single script that could do all of these things, if so that would be awesome. Any and all help is much appreciated. Thanks!