The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


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


power off switch / accessing GPIOs
#1
i am busy boxing the unit and running into issues while trying to add a power off switch due to the fact that my touchscreen seems to be weak in that particular upper right corner where the pulldown is, did turn 180degrees that helps but still want to have that switch.

followed the instructions here https://magpi.raspberrypi.com/articles/o...spberry-pi
and used the scrips described here: https://github.com/TonyLHansen/raspberry...ff-switch/
learned that i cannot use pin 40/gpio 21 because my hifi berry dac+ uses it: https://www.hifiberry.com/docs/hardware/...ry-boards/
adapted the scripts to gpio26 / pin 37
logged in via ssh
created the script in pi/shutdown-press-simple.py
added the script to /etc/rc.local
turned on gpio button handler in moOde
still does not work… any suggestions?
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 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: