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

Mocks for testing embedded-hal based drivers without hardware access.

Results 19 embedded-hal-mock issues
Sort by recently updated
recently updated
newest added

https://github.com/dbrgn/embedded-hal-mock/issues/112

Currently we have `src/eh1/pin.rs` but I think this should be `src/eh1/digital.rs` to match `embedded-hal`.

enhancement

In a few places there are error messages like this one: https://github.com/dbrgn/embedded-hal-mock/blob/3ac0ada5110218682e0dd1939f74cd008ee6d912/src/eh1/pin.rs#L135 This error message is triggered when Mock is empty. I don't think including the method name `set_low` is...

A top-level mock wrapper seems like something that would be very useful. https://github.com/dbrgn/embedded-hal-mock/issues/19 I've come up with something that _works_ and have been using my own project to drive its...

This PR adds support for the [`ToggleableOutputPin`](https://docs.rs/embedded-hal/latest/embedded_hal/digital/v2/trait.ToggleableOutputPin.html) trait from the `embedded-hal` crate. Possibly closes #30, although that issue mentions wanting to do this in a stateful way but currently, the...

This PR adds support for the async [`Wait`](https://docs.rs/embedded-hal-async/0.2.0-alpha.1/embedded_hal_async/digital/trait.Wait.html) trait from the `embedded-hal-async` crate.

Would you be interested in a PR that implements [ToggleableOutputPin](https://docs.rs/embedded-hal/0.2.3/embedded_hal/digital/v2/trait.ToggleableOutputPin.html)? If I understand things correctly, the `Transaction` already knows it's state https://github.com/dbrgn/embedded-hal-mock/blob/master/src/pin.rs#L51 so it should be relatively easy to implement...

With the release of `embedded-hal 1.0.0` `Serial` trait has been removed in favor of using `embedded-io`. This issue proposes adding IO mocks as a preferred method over existing 'Serial' which...

enhancement

Branch `1-alpha` is stale and has been merged in some way to `main`, so it can be deleted now. On the similar note, when pulling repo locally I noticed that...

enhancement