An open API service indexing awesome lists of open source software.

https://github.com/novboblee/dht22-avrlibc

A DHT22 sensor library for AVR MCUs implemented w/avr-libc, which can be used with multiple DHT22 devices in the same time.
https://github.com/novboblee/dht22-avrlibc

am2302 arduino atmega328p avr-gcc avr-libc c dht22

Last synced: 3 months ago
JSON representation

A DHT22 sensor library for AVR MCUs implemented w/avr-libc, which can be used with multiple DHT22 devices in the same time.

Awesome Lists containing this project

README

        

# dht22-avrlibc

A DHT22 library working on AVR MCUs, which is able to run multiple DHT22 devices
in the same time.

## What is DHT22

DHT22 (or AM2302) is a low-cost digital temperature and humidity sensor to
measure the temperature and relative humidity in the air.

## Requirement

1. Platform: AVR MCUs
2. [avr-libc](https://www.nongnu.org/avr-libc/): the standard library AVR-GCC
compiler using

## How to use

1. Include the `dht22.h`
2. Use `dht22_init()` to specify the port, pin ,ddr and bit the DHT22 device
using
3. Use `dht22_getdata()` to get the temperature and relative humidity from DHT22

## License

`dht22-avrlibc` is released under the MIT license. Use of this source code is
governed by a MIT-style license that can be found in the LICENSE file.