-
Notifications
You must be signed in to change notification settings - Fork 27
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
sysfs: GPIO unexport at exit #29
Comments
We would need a new shutdown function exported from either sysfs or as a generic form in periph. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I need to manually "unexport" pins after using this library. Let's say I've used pin 17 with the debounce example code. I'm unable to use the same pin again (using another library) without rebooting the Pi or running a command like this:
$ sudo bash -c "for ((i=0; i<32; i++)); do echo \$i >/sys/class/gpio/unexport; done"
Otherwise the other library fails with:
RequestLine returned error: device or resource busy
. And no I'm not running both programs at the same time. Apologies if this is normal, I don't know much about GPIO.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Be able to reuse the same pin. I think it would be nice to have a function that unexports and people would defer that.
Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: