Skip to content

jneem/aht10-async

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

AHT10 sensor embedded rust driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 80.4%
  • Nix 19.6%