Trying to get code for a Raspberry PI using Python to play sounds (small wav samples) when GPIO buttons are pressed, then play a different set of sounds once a dedicated button is pressed.
The dedicated button should be able to cycle through sets of predefined sounds.
In my code example I have 5 sound buttons and 1 switch button.
Currently the 5 sound buttons play 1 sound each when pressed.
The switch button simply says it's switching the sounds, but doesn't actually do anything at the moment.