Thank you for your donation!


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


Problem: GPIO Handler Issue
#7
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
Reply


Messages In This Thread
GPIO Handler Issue - by CHickey - 09-09-2020, 11:54 PM
RE: GPIO Handler Issue - by Tim Curtis - 09-10-2020, 12:15 AM
RE: GPIO Handler Issue - by CHickey - 09-10-2020, 08:16 AM
RE: GPIO Handler Issue - by Tim Curtis - 09-10-2020, 11:26 AM
RE: GPIO Handler Issue - by CHickey - 09-10-2020, 12:06 PM
RE: GPIO Handler Issue - by bitlab - 09-10-2020, 01:31 PM
RE: GPIO Handler Issue - by CHickey - 09-10-2020, 06:09 PM
RE: GPIO Handler Issue - by Tim Curtis - 09-10-2020, 08:01 PM

Forum Jump: