Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.
legacy
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Adafruit-Raspberry-Pi-Python-Code/Adafruit_DHT_Driver_Python/
Adafruit-Raspberry-Pi-Python-Code/Adafruit_DHT_Driver_Python/
This branch is 3 commits behind master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Build dependencies for dhtreader python library

Run following command to build the library:

python setup.py build

After that you should be able to find a dhtreader.so file inside build directory. Put that library file in the same directory with your Python script, then you are good to go.

Usage example:

import dhtreader

type = 22
pin = 24

dhtreader.init()
print dhtreader.read(type, pin)