Thank you for your donation!


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


Instruction Guide Use hardware momentary switches to control moOde
#47
Hello everybody.
I need your help to get this up and running.
Could you clarify the following questions:
a) Is it necessary to create the directory hwbuttons and put the python script from post #25 in it and name it buttons.py ?
b) If so then I think its also necessary to change the rc.local file to load the buttons.py script, right?
c) Inside the configuration (m > configure > system) I set the GPIO handler to ON and configure just button 1 as following (Switch to ON, PIN 27, CMD mpc toggle). But after saving the configuration and pressing the hardware button nothing happens. So is it the GPIO Number (27) or the Raspberry PI Pin (13) that must be set into the config?

I'm using the OLD Pi1 Model B+ Rev. 2 where Pin 13 is assigned to be GPIO27.
Kindly regards
The Herb Guy
Reply


Messages In This Thread
RE: Use hardware momentary switches to control moOde - by The Herb Guy - 03-03-2020, 02:13 PM

Forum Jump: