mirror of
https://github.com/rust-embedded/awesome-embedded-rust.git
synced 2026-03-09 07:12:05 -05:00
[PR #400] [MERGED] Add switch-hal #401
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rust-embedded/awesome-embedded-rust/pull/400
Author: @chrysn
Created: 2/4/2023
Status: ✅ Merged
Merged: 2/7/2023
Merged by: @bors[bot]
Base:
master← Head:add-switch-hal📝 Commits (1)
4069115Add switch-hal📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
README.md(+2 -0)📄 Description
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 instead), but I hope that this changes once it is more visible through here.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.