embedded-hal-mock
embedded-hal-mock copied to clipboard
Add support for ToggleableOutputPin for pin::Mock
This PR adds support for the ToggleableOutputPin trait from the embedded-hal crate.
Possibly closes #30, although that issue mentions wanting to do this in a stateful way but currently, the mocks don't seem to work that way. Instead, they just work on the transactions and have no internal pin state.
@cdunster hi, there are new conflicts introduced by other merges. Would you mind updating your branch? Thanks.
Hi @dbrgn, done. Thanks for looking into this PR.
Hi @dbrgn and happy new year, I've updated this PR to work with the new StatefulOutputPin that replaces ToggleableOutputPin in embedded-hal v1. The CI is passing so it would be nice to get this merged, let me know if I can help. Thanks.
Thanks for the updates! I'll rebase this branch against main. The pin module was renamed to digital in #113, so I'll have to adjust the second commit for that.
Edit: A regular rebase didn't properly detect the rename, but adding the --strategy-option="find-renames=10" argument helped 🙂