Skip to content

Commit 157a375

Browse files
bors[bot]chrysn
andauthored
Merge #400
400: Add switch-hal r=eldruin a=chrysn The switch-hal crate just extends embedded-hal by a bit (hah!) -- but I find it very useful, for it provides clean "on"/"off" semantics for what is otherwise merely "high"/"low", and thus dependent on the actual wiring (both LEDs and buttons are just as easy to wire either way). It's not used a lot ([crates assume active-low](jamesmunns/blinq#4) instead), but I hope that this changes once it is more visible through here. Co-authored-by: chrysn <[email protected]>
2 parents 40e916f + 4069115 commit 157a375

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ devices which go beyond what is available in [`embedded-hal`]:
700700
- [`atat`](https://github.com/BlackbirdHQ/atat): Abstraction crate to ease writting AT based driver crates - ![crates.io](https://img.shields.io/crates/v/atat.svg)
701701
- [`embedded-nal`](https://github.com/rust-embedded-community/embedded-nal): An Embedded Network Abstraction Layer - ![crates.io](https://img.shields.io/crates/v/embedded-nal.svg)
702702
- [`embedded-storage`](https://github.com/rust-embedded-community/embedded-storage): An Embedded Storage Abstraction Layer
703+
- [`switch-hal`](https://github.com/rubberduck203/switch-hal): An "on"/"off" abstraction for input and output switches - ![crates.io](https://img.shields.io/crates/v/switch-hal.svg)
704+
703705

704706
## Driver crates
705707

0 commit comments

Comments
 (0)