[PROBLEM] Using GPIO to Pause/Play - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] Using GPIO to Pause/Play (/showthread.php?tid=5239) |
Using GPIO to Pause/Play - xaszy - 12-12-2022 Hello together, i am testing an rotary encoder with an rpi which works fine so far for volume. It has a lot of bounce, but i did not dig into that for now, will do that. What i am trying to do is to use the push button of the rotary encoder, to pause / play and not only "mute". I found that there is a gpio handler with some command options and i did find how to vol up and down and mute via the vol.sh, but i could not figure out how to pause a playback with the button. Could anyone help me, what need to get in the command field to actually pause a playback ? Thank you very much, best regards, xaszy RE: Using GPIO to Pause/Play - TheOldPresbyope - 12-12-2022 (12-12-2022, 05:17 PM)xaszy Wrote: Hello together, From the moOde commandline, have a look at the output of Code: mpc help You'll find separately "mpc play" and "mpc pause" (and "mpc stop", for that matter) but also "mpc toggle". Have fun. Regards, Kent RE: Using GPIO to Pause/Play - xaszy - 12-13-2022 Hello Kent, thank you for you answer. I could not get it to work, at least not for Spotify Connect and a Radio Stream Source. Volume Control ist working fine with the end encoder on pin 23/24. Just to make sure, this is how i set it up [attachment=3126] Best regards, xaszy RE: Using GPIO to Pause/Play - Tim Curtis - 12-13-2022 Place a comma between MPC and TOGGLE per the NOTE. RE: Using GPIO to Pause/Play - xaszy - 12-13-2022 Well, something which is clearly stated in the note.. I am sorry, that was a really dumb question from me Thank you and Sorry RE: Using GPIO to Pause/Play - Tim Curtis - 12-14-2022 (12-13-2022, 10:27 PM)xaszy Wrote: Well, something which is clearly stated in the note.. For sure not a dumb question. Many parts of moOde are very technical and not easy to explain in help text what exactly is required. Always feel free to ask any type of question in the Forum :-) |