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.
- Host: GitHub
- URL: https://github.com/novboblee/dht22-avrlibc
- Owner: NOVBobLee
- License: mit
- Created: 2023-09-27T17:41:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-05T16:49:49.000Z (over 1 year ago)
- Last Synced: 2025-01-25T19:43:09.367Z (5 months ago)
- Topics: am2302, arduino, atmega328p, avr-gcc, avr-libc, c, dht22
- Language: C
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.