-
Notifications
You must be signed in to change notification settings - Fork 126
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
Replacing quick2wire’s gpio-admin with Wiring Pi’s gpio utility #25
Comments
uses the pi-gpio version described here: rakeshpai/pi-gpio#25
Thanks, @tjanson! This is entirely in sync with what I've wanted to do. It's awesome that you coded it up! :) How do you want to proceed? How hard do you think it will be to support backwards compatibility? Would you say it's worth sacrificing backwards compatibility (if, say, we do that with a significant version bump)? I'm also open to hand over control over this repo to you, if you could help with on-going maintenance. |
Not hard at all. Keeping in line with the old API,
Everything else could stay the same. Some methods would be rather pointless (e.g.,
Thanks – I’d like that, I’m willing to put some effort into maintaining it. :) |
Sorry for the late reply. I've added you as a collaborator on this repo. Please let me know when you're ready, and I could test and push to npm. |
I’ve pushed to branch Apart from adding tests for the auto-export functionality, I’m thinking about rewriting |
I’ve cleaned everything up and opened a PR #27, please have a look. :) |
Ah cool. Sorry for the delay. I'll review the PR soon. |
Hi,
I’ve been using pi-gpio for a while (in the form of Heimcontrol), so first off thank you for your work.
There’s been only one issue: As described in #24,
export
ing pins is finicky and complicates things – which is a shame, because simplicity is really what I like about pi-gpio.My vision of pi-gpio: A simple, beginner-friendly library providing basic read/write functions that can be used without worrying about exports at all, e.g.:
The problem really lies in the underlying tool: quick2wire’s gpio-admin, which as far as I can tell has in practice been superseeded by Wiring Pi’s gpio utility. In order to make the switch,
fs
calls; it provides the usual functions (read
,write
,export
, etc.), and parses queries likegpio readall
to JSON. I’d like it to mirror the original tool exactly.I understand that you may want something very different from pi-gpio. That’s why I’m asking for your feedback!
As it stands, it’s a pretty massive change, with an entirely incompatible API, but I’d be willing to make it backwards-compatible, or modify it in any other way, if desired.
The text was updated successfully, but these errors were encountered: