Registry / async / embedded-hal-async

embedded-hal-async

JSON →
library1.0.0rscratesunverified

An asynchronous Hardware Abstraction Layer (HAL) for embedded systems.

# Cargo.toml [dependencies] embedded-hal-async = "1.0.0"
INSTALL
IMPORT
SIG · EMBEDDED-HAL-ASYNC
E
embedded-hal-async
asyncrustv1.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.

DelayNs
use embedded_hal_async::delay::DelayNs;

Defines an async function that uses a delay from embedded-hal-async.

use embedded_hal_async::delay::DelayNs; async fn blink(delay: &mut impl DelayNs) { loop { // toggle LED delay.delay_ms(1000).await; } }
Debug
Known issues
gotchaRequires an async executor (e.g., embassy) to run
fix
Use an executor like embassy-executor or tokio with the appropriate feature.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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