Registry / other / embedded-hal

embedded-hal

JSON →
library1.0.0rscratesunverified

A Hardware Abstraction Layer (HAL) for embedded systems, providing traits for digital I/O, communication, and more.

# Cargo.toml [dependencies] embedded-hal = "1.0.0"
INSTALL
IMPORT
SIG · EMBEDDED-HAL
E
embedded-hal
otherrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OutputPin
✓ use embedded_hal::digital::OutputPin;

Implements the OutputPin trait for a custom pin.

use embedded_hal::digital::OutputPin; struct MyPin; impl OutputPin for MyPin { type Error = (); fn set_low(&mut self) -> Result<(), Self::Error> { Ok(()) } fn set_high(&mut self) -> Result<(), Self::Error> { Ok(()) } } fn main() { let mut pin = MyPin; pin.set_high().unwrap(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
embedded-hal — cargo add embedded-hal · libregistry