[PR #400] [MERGED] Add switch-hal #401

Closed
opened 2025-11-06 08:25:32 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: masterHead: add-switch-hal


📝 Commits (1)

📊 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.

## 📋 Pull Request Information **Original PR:** https://github.com/rust-embedded/awesome-embedded-rust/pull/400 **Author:** [@chrysn](https://github.com/chrysn) **Created:** 2/4/2023 **Status:** ✅ Merged **Merged:** 2/7/2023 **Merged by:** [@bors[bot]](https://github.com/apps/bors) **Base:** `master` ← **Head:** `add-switch-hal` --- ### 📝 Commits (1) - [`4069115`](https://github.com/rust-embedded/awesome-embedded-rust/commit/4069115ba0b39411bd84da19ff8d3221d6413c53) Add switch-hal ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -0) </details> ### 📄 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](https://github.com/jamesmunns/blinq/issues/4) instead), but I hope that this changes once it is more visible through here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 08:25:32 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-embedded-rust#401