01-26-2022, 01:12 PM
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?
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?