https://github.com/dead-beef/dht11-decimal
Linux kernel driver for DHT11 / DHT22 with decimal part support and raw value channels
https://github.com/dead-beef/dht11-decimal
dht11 dht22 humidity linux linux-kernel-module temperature
Last synced: 29 days ago
JSON representation
Linux kernel driver for DHT11 / DHT22 with decimal part support and raw value channels
- Host: GitHub
- URL: https://github.com/dead-beef/dht11-decimal
- Owner: dead-beef
- License: gpl-2.0
- Created: 2022-11-17T11:56:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-20T15:05:15.000Z (over 2 years ago)
- Last Synced: 2025-02-04T16:32:14.726Z (3 months ago)
- Topics: dht11, dht22, humidity, linux, linux-kernel-module, temperature
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dht11-decimal
[](
https://github.com/dead-beef/dht11-decimal/blob/master/LICENSE
)## Overview
Linux kernel driver for DHT11 / DHT22 with decimal part support and raw value channels.
Based on the [dht11](https://github.com/torvalds/linux/blob/master/drivers/iio/humidity/dht11.c) driver in the kernel tree.
## Installation
```bash
make
sudo make install
```## Usage
```bash
sudo dtoverlay -v dht11-decimal gpiopin=13
``````bash
sudo sh -c "echo 'dtoverlay=dht11-decimal,gpiopin=13' >>/boot/config.txt"
sudo reboot
``````bash
cat /sys/bus/iio/devices/iio\:device0/{in_temp_input,in_humidityrelative_input}
``````bash
cat /sys/bus/iio/devices/iio\:device0/{in_temp_raw,in_humidityrelative_raw}
```