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
#55
I don't see anything Confused
Code:
pi@moode:~ $ sudo /var/www/command/gpio-buttons.py
2020-04-12 15:51:44 sw_1: pin=16, enabled=1, bounce_time=1000, cmd=mpc stop
2020-04-12 15:51:44 sw_3: pin=25, enabled=1, bounce_time=1000, cmd=mpc stop
2020-04-12 15:51:44 sw_4: pin=17, enabled=1, bounce_time=1000, cmd=mpc next

Also, my setup is that the GPIO button is connected between +3V and GND (EDIT: wrong, I should have written: "GPIO pin is connected to +3V when I press the button"). I don't know if it's useful to know that or not.
Reply


Messages In This Thread
RE: Use hardware momentary switches to control moOde - by sisim - 04-12-2020, 01:55 PM

Forum Jump: