09-10-2020, 06:09 PM
(This post was last modified: 09-10-2020, 07:50 PM by CHickey.
Edit Reason: Update on status of issue
)
Okay so I tried the suggestions above.
For Tim's suggestion of running buttons.py I got back:
"2020-09-10 18:36:37 sw_1: pin=7, enabled=1, bounce_time=1000, CMD=poweroff" but still no response from my button. The console was then in a loop so I had to ctrl-c out.
As regards bitlabs suggestion I checked out the gpios with a gpio readall before and after pressing the button. This brought the voltage on my chosen pin 7 from 1v to 0v.
I then customised the line of code for config.txt tosuit my situation but to no effect unfortunately although I am fuzzy as to what the last param should be set to.
I have now set gpio_pull=up which has fixed my issue and I now have a working power button
Still wondering what was wrong with the gpio handler, but I am able to work around it.
Thanks guys
For Tim's suggestion of running buttons.py I got back:
"2020-09-10 18:36:37 sw_1: pin=7, enabled=1, bounce_time=1000, CMD=poweroff" but still no response from my button. The console was then in a loop so I had to ctrl-c out.
As regards bitlabs suggestion I checked out the gpios with a gpio readall before and after pressing the button. This brought the voltage on my chosen pin 7 from 1v to 0v.
I then customised the line of code for config.txt tosuit my situation but to no effect unfortunately although I am fuzzy as to what the last param should be set to.
I have now set gpio_pull=up which has fixed my issue and I now have a working power button
Still wondering what was wrong with the gpio handler, but I am able to work around it.
Thanks guys