-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add README.md and comment example
Set cargo version back to 0.1.0 for first release
- Loading branch information
1 parent
37d75e7
commit bd9abba
Showing
4 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "dht-sensor" | ||
version = "0.2.0" | ||
version = "0.1.0" | ||
description = "Driver for the DHT11/DHT22 sensor based on embedded-hal" | ||
authors = ["Michael Beaumont <[email protected]>"] | ||
keywords = ["embedded", "sensor", "humidity", "temperature", "embedded-hal-driver", "dht11", "dht22"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# DHT11/DHT22 sensor driver | ||
|
||
This library provides a platform-agnostic driver for the [DHT11 and DHT22](https://learn.adafruit.com/dht/overview) sensors. | ||
|
||
Use one of two functions `dht11::Reading::read` and `dht22::Reading::read` to get a reading. | ||
|
||
## Usage | ||
|
||
The only prerequisites are an embedded-hal implementation that provides: | ||
|
||
- `Delay`-implementing type, for example Cortex-M microcontrollers typically use the `SysTick`. | ||
- `InputOutputPin`-implementing type, for example an `Output<OpenDrain>` from `stm32f0xx_hal`. | ||
|
||
See the [stm32f042 example](examples/stm32f042.rs) for a commented example of | ||
how to use the library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters