Thank you for your donation!


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


power off switch / accessing GPIOs
#2
I don't think you need the GPIO Button handler because the script is launched at startup from rc.local and it does its own monitoring of the specific GPIO pins.

Post some info


Code:
ls -l /home/pi
cat /home/pi/shutdown-press-simple.py
cat /etc/rc.local
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
power off switch / accessing GPIOs - by KHB49 - 01-26-2022, 01:12 PM
RE: power off switch / accessing GPIOs - by Tim Curtis - 01-26-2022, 02:19 PM
RE: power off switch / accessing GPIOs - by KHB49 - 01-26-2022, 04:48 PM
RE: power off switch / accessing GPIOs - by KHB49 - 01-26-2022, 06:30 PM
RE: power off switch / accessing GPIOs - by KHB49 - 01-26-2022, 06:57 PM
RE: power off switch / accessing GPIOs - by KHB49 - 01-26-2022, 07:35 PM
RE: power off switch / accessing GPIOs - by KHB49 - 01-27-2022, 02:40 PM

Forum Jump: