Crate dht22_pi [−] [src]
This is a Rust API to obtain temperature and humidity measurements from a DHT22 connected to a Raspberry Pi.
This library is essentially a port of the Adafruit_Python_DHT library from C to Rust.
This library has been tesed on a DHT22 from Adafruit using a Raspberry Pi Module B+.
Structs
Reading |
A temperature and humidity reading from the DHT22. |
Enums
ReadingError |
Errors that may occur when reading temperature. |
Functions
read |
Read temperature and humidity from a DHT22 connected to a GPIO pin on a Raspberry Pi. |