Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the GPIO pin used for shutdown #23

Open
coolman1987us opened this issue Apr 2, 2021 · 2 comments
Open

Changing the GPIO pin used for shutdown #23

coolman1987us opened this issue Apr 2, 2021 · 2 comments

Comments

@coolman1987us
Copy link

I'm only interested in using this to shutdown and I cant seem to figure out where to find the file to edit the GPIO pin used. I would like to use GPIO23 (pin 16 on Pi B+). Thanks in advance.

@mptrs
Copy link

mptrs commented May 28, 2021

Not sure if you solved it, but you can change the listen-for-shutdown.py line 9 and 10. I think changing the 3 into 23 should do the trick.

GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.wait_for_edge(23, GPIO.FALLING)

@coolman1987us
Copy link
Author

I did end up finding it. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants