| Crates.io | aht10-async |
| lib.rs | aht10-async |
| version | 0.1.0 |
| created_at | 2023-11-24 04:32:57.275825+00 |
| updated_at | 2024-05-05 22:41:53.809689+00 |
| description | A platform agnostic driver to interface with the AHT10 temperature/humidity sensor |
| homepage | |
| repository | https://github.com/jneem/aht10 |
| max_upload_size | |
| id | 1046800 |
| size | 45,302 |
AHT10An embedded rust no_std driver for the AHT10 temperature and humidity sensor.
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();
API documentation is generated on docs.rs.
Licensed under AGPL-3.0.