aht10-async

Crates.ioaht10-async
lib.rsaht10-async
version0.1.0
sourcesrc
created_at2023-11-24 04:32:57.275825
updated_at2024-05-05 22:41:53.809689
descriptionA platform agnostic driver to interface with the AHT10 temperature/humidity sensor
homepage
repositoryhttps://github.com/jneem/aht10
max_upload_size
id1046800
size45,302
(jneem)

documentation

README

AHT10

An embedded rust no_std driver for the AHT10 temperature and humidity sensor.

Usage

Include library as a dependency in your Cargo.toml:

[dependencies.aht10]
version = "<version>"

To use the sensor, call AHT10::new with an embedded-hal i2c device:

extern crate aht10;

// Start the sensor.
let mut dev = AHT10::new(i2c_dev, embedded_hal::Delay).unwrap();
// Read humidity and temperature.
let (h, t) = dev.read().unwrap();

Documentation

API documentation is generated on docs.rs.

License

Licensed under AGPL-3.0.

Commit count: 5

cargo fmt