embedded-hal-mock icon indicating copy to clipboard operation
embedded-hal-mock copied to clipboard

Add support for ToggleableOutputPin for pin::Mock

Open cdunster opened this issue 9 months ago • 3 comments

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 avatar Sep 14 '23 15:09 cdunster

@cdunster hi, there are new conflicts introduced by other merges. Would you mind updating your branch? Thanks.

dbrgn avatar Nov 23 '23 22:11 dbrgn

Hi @dbrgn, done. Thanks for looking into this PR.

cdunster avatar Nov 26 '23 09:11 cdunster

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.

cdunster avatar Jan 11 '24 10:01 cdunster