12-01-2019, 02:48 PM
(12-01-2019, 02:40 PM)ghoeher Wrote: In my case, the upgrade from 6.3 to 6.4 completely crashed my moode installation - Pi was only blinking on the green LED 7 times after reboot - kernel*.img was missing on /boot. for whatever reason.
After a complete new installation it's up and running again, but I've trouble with the GPIO configuration. I'm not sure if it's a bug or I'm doing something in the wrong way as I can't remember 100% exactly how I configured it before.
I have a rotaty encoder with button and the button is connected to pin 25. The rotary encoder works as designed, but the button unfortunately not. It should trigger a Start/Pause script and is configured like shown in the screenshots:
If I run "sudo /var/www/command/gpio-buttons.py" via ssh, the button is working:
As soon as I stop the script, the button stops working and I don't have any idea why. I already disabled and re-enabled the settings without any success.
Best regards
Georg
You prolly need to specify the full path to the script. What you have now is ./script_name.sh. The ./ means whatever current directory I'm in.
If your scripts are in the pi users home directory i.e., /home/pi then specify /home/pi/script_name.sh.