Closed stufo19 closed 4 years ago
I'll need some info to help you.
can you send the pushbutton section of you config.json ?
"pushbutton": { "enabled": true, "bonnet": true, "pin": 3, "reboot_duration": 2, "reboot_override_process": "", "display_reboot": true, "poweroff_duration": 5, "poweroff_override_process": "", "display_halt": true, "state_triggered1": "covid_19", "state_triggered1_process": ""
Config looks good. so when you say trouble, do you mean not working at all? Does if shutdown after 5 seconds ?
Yes, none of the features listed work. I tested my button with a multimeter and it appears to work so I'm not sure why it doesn't work.
To put it on record and to answer your original question, you don't need any script to use the power on and off function. The SBIO module take care of it.
In your situation I'd re run the install.sh and the ./nhl_setup. If that does not fix in. send a picture of your bonnet. I'll get some more info from the contributor who wrote the SBIO module.
Here's something to test out your button outside the software. load this script onto your Pi into the root of the nhl-led-scoreboard.
Than run it sudo python3 test_button_gpio3.py
. this will read the GPIO 3 pin every 0.1 seconds. if the button is pressed it will print "Button is pressed" on your terminal, otherwise it will print "Button is not pressed".
It turns out that re running the scripts and redoing some soldering fixed the issue, thank you.
I am having trouble getting the power button feature to work. Do I need to install some sort of script in order to get this feature to work?