#temperature-humidity #embedded-hal-driver #temperature #humidity

no-std aht10

A platform agnostic driver to interface with the AHT10 temperature/humidity sensor

1 unstable release

Uses old Rust 2015

0.0.1 Jul 25, 2019

#25 in #humidity

AGPL-3.0-or-later

15KB
105 lines

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.

Dependencies

~190KB