docs.rs failed to build embassy-dht-sensor-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Embassy DHT Sensor Library
This Rust library provides an interface for interacting with DHT1X and DHT2X temperature and humidity sensors using the Embassy framework.
Adafruit DHT sensor library is used as a reference for this library. https://github.com/adafruit/DHT-sensor-library
Note
This library should be used in release mode. The measurements made in the debug mode are not accurate enough.
Supported Devices
Currently only the Raspberry Pi Pico board supported.
Getting Started
Installation
Add embassy-dht-sensor
to your Cargo.toml
:
[]
= "0.1.0"
Usage
Initialize your Raspberry Pi Pico board with Embassy. Create an instance of DHTSensor with the GPIO pin connected to your DHT sensor. Use the read method to get temperature and humidity readings.
Example:
use Spawner;
use ;
use ;
use DHTSensor;
use info;
async
'''