Thank you for your donation!


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


Solved: GPIO pins setting Play Pause
#6
Hello,
 so, I found here some stuff.

I created myscript.sh

Code:
#!/bin/bash
mpc play
mpc pause


and put it under /home/pi/
then ran
Code:
sudo chmod +x /home/pi/myscript.sh

Gpio setting is like shown in picture.
All GPIOs are connected to ground.

Only the shutoff button is working, GPIO 26

What could be wrong?

Alain


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
GPIO pins setting Play Pause - by Alaini93 - 12-30-2020, 12:57 AM
RE: GPIO pins setting - by TheOldPresbyope - 12-30-2020, 01:13 AM
RE: GPIO pins setting - by Alaini93 - 12-30-2020, 02:27 AM
RE: GPIO pins setting - by TheOldPresbyope - 12-30-2020, 04:31 PM
RE: GPIO pins setting - by Alaini93 - 12-30-2020, 05:17 PM
RE: GPIO pins setting - by Alaini93 - 01-02-2021, 04:23 PM
RE: GPIO pins setting - by Tim Curtis - 01-02-2021, 05:03 PM
RE: GPIO pins setting - by Alaini93 - 01-02-2021, 05:30 PM
RE: GPIO pins setting - by Alaini93 - 01-03-2021, 06:34 PM

Forum Jump: