Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barafael/cd74hc4067-rs
A simple no_std Rust driver for the 74HC4067
https://github.com/barafael/cd74hc4067-rs
Last synced: 5 days ago
JSON representation
A simple no_std Rust driver for the 74HC4067
- Host: GitHub
- URL: https://github.com/barafael/cd74hc4067-rs
- Owner: barafael
- License: mit
- Created: 2021-01-14T13:06:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-10T12:06:10.000Z (over 2 years ago)
- Last Synced: 2024-09-18T09:12:00.901Z (about 2 months ago)
- Language: Rust
- Size: 148 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Rust embedded-hal driver for CD74HC4067
============This library is an [embedded-hal][] compliant driver for a GPIO-driven CD74HC4067 chip.
It is completely hardware-agnostic, only requiring 5 output pins to operate.
Given a compliant implementation of embedded-hal for a target, this driver should work there out-of-the-box.# Blog post
To read more on this nice little driver, blog post [here](https://barafael.github.io/A-Platform-Agnostic-Driver-for-the-CD74HC4067/).
[embedded-hal]: https://github.com/japaric/embedded-hal.git
Testing embedded-hal with mocking
=============The tests for the library also show a basic example of how to use embedded-hal-mock to test drivers when the hardware isn't there yet :) or on CI.
Note, the test coverage is [practically 100% line coverage](https://github.com/barafael/cd74hc4067-rs/blob/main/cd74hc4067/coverage.pdf).The only exception are the calls to PhantomData::<...>, as they are excluded from the compiled binary by design.
License
-------[MIT License](LICENSE).