dht20-rs 0.3.2

A `no_std` Rust driver for the DHT20 temperature and humidity sensor.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// no_std; intended for embedded environments
#![cfg_attr(not(test), no_std)]

#[cfg(test)]
extern crate std; // to permit testing in non-embedded environment

pub mod dht20; // main dht20 module
pub mod sensor_reading; // type-safe sensor reading struct; prevent mixing up Celsius and Fahrenheit
mod utils; // utility functions for dht20

// re-export for convenience
pub use dht20::*;