A ToggeableOutputPin trait has been added. This trait contains a single method: toggle that
can be used to toggle the state of a push-pull pin.
Changed
[breaking-change] The signature of CountDown.wait changed; it now returns nb::Result<(), Void>. Where Void is the stable alternative to the never type, !, provided by the stable
void crate. Implementations of the CountDown trait will have to be updated to use the new
signature. With this change this crate compiles on the stable and beta channels.
[breaking-change] the OutputPin.is_{low,high} methods have been moved into its own trait
StatefulOutputPin and renamed to is_set_{low,high}.
It has been clarified in the documentation that OutputPin must be implemented for push-pull
output pins (and e.g. not for open drain output pins).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on embedded-hal-bus to permit the latest version.
Changelog
Sourced from embedded-hal-bus's changelog.
Commits
f2b72ac
v0.2.0c940b77
Merge #72ce85b01
Merge #80ec1d608
bors-nga5c42b9
replace uses of ! with Void6549d73
move ToggleableOutputPin default impl to opt-in trait + docac965a3
separate OutputPin.toggle() into ToggleableOutputPin, provide default impl fo...3f61ef2
Add StatefulOutputPin to read and toggle the state of OutputPin97fac76
Remove reading functions from OutputPin trait0bbb915
Merge pull request #70 from japaric/awesomeDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show