sethcurry/scdht

0.0.1

Latest
uploaded 2 days ago
A component for using DHT sensors

readme

# scdht

This is a thin wrapper around Ricardo Timmermann's library for DHT22 sensors.

## Example

```
#include "scdht.h"

void app_main(void)
{
	// Set the pin number
	setDHTgpio(15);

	// Get a reading
	int ret = readDHT();

	// Handle errors
	errorHandler(ret);

	float humidity = getHumidity();
	float temperature = getTemperature();
}
```

Links

Supports all targets

License: MIT

To add this component to your project, run:

idf.py add-dependency "sethcurry/scdht^0.0.1"

download archive

Stats

  • Archive size
    Archive size ~ 4.38 KB
  • Downloaded in total
    Downloaded in total 0 times
  • Downloaded this version
    This version: 0 times

Badge

sethcurry/scdht version: 0.0.1
|