Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


does GPIO button handler work on 6.5.2
#1
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  Huh
Reply
#2
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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
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
Reply
#4
answered here..:-)
http://moodeaudio.org/forum/showthread.p...4#pid20564
----------
bob
Reply
#5
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
Reply


Forum Jump: