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

gpio-admin support #14

Closed
Hypnopompia opened this issue Sep 20, 2013 · 2 comments
Closed

gpio-admin support #14

Hypnopompia opened this issue Sep 20, 2013 · 2 comments
Assignees

Comments

@Hypnopompia
Copy link

I'd love to see this module support gpio-admin for exporting and unexporting pins instead of needing to be root.

An example of another node gpio module that does this: https://github.com/rakeshpai/pi-gpio (however that module doesn't seem to support interrupts like this one does)

@fivdi
Copy link
Owner

fivdi commented Sep 20, 2013

There is a section in the read-me describing an alternative technique for handling superuser issues. Briefly, you can export and unexport pins as the superuser and run your application as a non-superuser.

That being said, if onoff played well with gpio-admin it could take advantage of gpio-admins ability to configure pull-up and pull-down resistors for GPIO pins.

@ghost ghost assigned fivdi Sep 20, 2013
@fivdi
Copy link
Owner

fivdi commented Oct 13, 2013

As of commit c3778cf onoff plays well with gpio-admin on the Pi. onoff doesn't use gpio-admin internally as gpio-admin isn't available for the BeagleBone. It is however now possible to use gpio-admin for export/unexport and pull-up/pull-down resistor configuration. Please see the readme for more details.

@fivdi fivdi closed this as completed Oct 13, 2013
@fivdi fivdi mentioned this issue Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants