Thank you for your donation!

Instruction Guide Use hardware momentary switches to control moOde
Opened the thread to ask exactly the same question Smile
Just put the commands in a BASH script and assign the script to the button

1. Create in your home directory /home/pi/ otherwise referred to as ~
See example below.

mpc clear
mpc load "my_playlist"
mpc play

2. Mark it executable

chmod +x ~/
Thanks Tim. When you say assign the script to that button you mean put "~/my" into the GPIO dialog box in Moode instead of "mpc play" etc?
Yes, but use the absolute path instead of ~/

Hi every 1.First of all i will like to thank Tim for all his work end effort invested in this great project.i realy love to my problem/request.for my moode project i would to add only one button(pull-down) for both power up and power problem is although i possess a fair amount of  knowledge about electronics my coding knowledge is close to zero and from my researches for this project  some coding is necessary(i might be wrong).so if anyone has some ideas i will be very happy to put them in practice.thank you.i forgot to mention that i'm useing a rasberry pi 3+ 1Gb board plus IQaudIO Pi-DigiAMP+ with a 5 inch touchscreen display.

Forum Jump: