Skip to content

Latest commit

 

History

History
 
 

Adafruit_DHT_Driver_Python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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)