Registry / other / esp-idf-hal

esp-idf-hal

JSON →
library0.46.2rscratesunverified

A Hardware abstraction layer for Espressif's ESP family of microcontrollers based on the ESP-IDF framework.

# Cargo.toml [dependencies] esp-idf-hal = "0.46.2"
INSTALL
IMPORT
SIG · ESP-IDF-HAL
E
esp-idf-hal
otherrustv0.46.2
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.

prelude
use esp_idf_hal::prelude::*;

Initializes GPIO and sets a pin high on an ESP32 microcontroller.

use esp_idf_hal::prelude::*; fn main() -> anyhow::Result<()> { let peripherals = Peripherals::take().unwrap(); let mut led = PinDriver::output(peripherals.pins.gpio2)?; led.set_high()?; println!("LED on!"); Ok(()) }
Debug
Known issues
gotchaRequires ESP-IDF framework and appropriate target; not for standard desktop Rust.
fix
Use with esp-idf-sys and target an ESP32 chip; see esp-rs book.
affects: >=0.46.0
Upgrade
Version history
0.46.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Meta
1
Resources
esp-idf-hal — cargo add esp-idf-hal · libregistry