Paul Osborne
Paul Osborne
I think that output is actually from WiringPi: https://raspberrypi.stackexchange.com/questions/66873/how-to-read-output-of-gpio-readall and not anything generated by this crate or gpio-utils (which uses this).
Ah, I see, unfortunately the answer is a bit tricky and this is part of the reason for the sysfs interface to GPIOs and global numbering that goes along with...
There's some discussion here: https://github.com/rust-embedded/rust-sysfs-gpio/issues/5. I don't think there are any plans to handle this directly in this library.
Yeah, would you be willing to open a PR with notes on possibly having to work around udev?
That's a good idea; I'll leave this open as a tracking ticket for adding that support. Let me know if you would like to take a shot at proposing a...
Thanks for the example @lthiery; can you run `rustfmt` on this? I'll give it a once-over as well in more detail.
@mathk I haven't made my rounds on this repo to enable bors yet but may be doing some of that tomorrow.
This probably needs a rebase to have a better chance with CI.
This wouldn't be too difficult with a thread, but that involves a thread, of course. There have been discussions about integration the Gpio poll functionality with mio or other async...
@DarkWugWug Probably just an oversight; feel free to open a PR to fill in that functionality on the mock.