embedded-hal-mock 0.3.0

A collection of mocked devices that implement the embedded-hal traits
Documentation

embedded-hal-mock

CircleCI

This is a collection of types that implement the embedded-hal traits.

The implementations never access real hardware. Instead, the hardware is mocked or no-op implementations are used.

The goal of the crate is to be able to test drivers in CI without having access to hardware.

Docs

Status

  • Simple I2C implementation
  • Transactional SPI implementation
  • No-op Delay implementation

Pull requests for more mock implementations are welcome! :)

no_std

Currently this crate is not no_std. If you think this is important, let me know.

Usage

See docs.

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.