-
Notifications
You must be signed in to change notification settings - Fork 232
digital::InputPin
API
#41
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
Comments
Implemented in nrf51-hal = "0.4.1" and used in microbit = "0.4.1". |
Would this be the correct trait to include some sort of simple edge detection API (e.g. for buttons hooked up to GPIO)? |
Does this api still needs more drivers? It seems to be quite stable since it's introduction half a year ago. |
The only problem I found with this api since using it is that errors can't get propagated any further and need to be converted to a default value. E.g. the linux sys_fs can receive an file error while trying to read the value (https://github.com/rust-embedded/rust-sysfs-gpio/blob/master/src/lib.rs#L337) and this can't be handled by a simple bool. |
I also stumbled upon the same problem as @caemor with both Should we discuss this in a separate issue? |
Interesting problems! I think as this spans all operations (not just |
If this API does not need driver nor implementation, when will it be proven ? |
The problem is: There's no process to mark something as proven. There's a new RFC open #163 in attempt to completely revamp the way we get things added/changed. Since there're enough implementations already we could simply accept a PR to mark it proven. |
See rust-embedded#41 for more details about this trait. Removes the feature flag from v2 implementation Keeps it on v1 because it would not make sense to prove a deprecated feature.
See rust-embedded#41 for more details about this trait. Removes the feature flag from v2 implementation Keeps it on v1 because it would not make sense to prove a deprecated feature.
I think this issue can be closed. |
Fair enough. |
42: Update gpio-cdev and add MSRV r=posborne a=eldruin Using `gpio-cdev` 0.3 we have a MSRV of 1.36.0 due to `nix`. This superseeds rust-embedded#41 Co-authored-by: Diego Barrios Romero <[email protected]>
This trait became available in release v0.1.1 behind the "unproven" Cargo feature.
The text was updated successfully, but these errors were encountered: