does GPIO button handler work on 6.5.2 - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: does GPIO button handler work on 6.5.2 (/showthread.php?tid=2573) |
does GPIO button handler work on 6.5.2 - avior - 05-23-2020 hi i am trying to get grio button to work but just get nothing to work on 6.52 i have tried wire connected to 3.3 wire connected gpio 10 I have tried mpc ,next mpc,next mpc next also tried ground to gpio 10 but nothing does anyone have any idea what i am doing wrong thanks RE: does GPIO button handler work on 6.5.2 - Tim Curtis - 05-23-2020 You can try to run it from command line and see if it prints out errors. You can also add your own debugging to the script if you know some Python. First turn it off in System Config then run the cmd below. Code: sudo /var/www/command/gpio-buttons.py Then press the button RE: does GPIO button handler work on 6.5.2 - avior - 05-23-2020 thank you tim for fast reply i got the following buttons to work toggle using "mpc, toggle" next "mpc, next" prev "mpc prev" turn off "sudo, poweroff" but where do i put the comma in: but cant Figure out the volume up and down /var/www/vol.sh up 10 /var/www/vol.sh dn 10 thank you RE: does GPIO button handler work on 6.5.2 - DRONE7 - 05-23-2020 answered here..:-) http://moodeaudio.org/forum/showthread.php?tid=2065&pid=20564#pid20564 RE: does GPIO button handler work on 6.5.2 - avior - 05-24-2020 Thank You so Much got it to work Toggle----------------------------mpc, toggle next song------------------------mpc, next previous song-------------------mpc prev Turn off--------------------------sudo, poweroff volume up-----------------------/var/www/vol.sh,up,5 Volume Down------------------/var/www/vol.sh,dn,5 |