no pulseio for dht
This commit is contained in:
parent
5ffef8254a
commit
a0bfadcce8
2
dht.py
2
dht.py
@ -20,7 +20,7 @@ class dht_22(background_task):
|
|||||||
self.__data_callback__ = data_callback
|
self.__data_callback__ = data_callback
|
||||||
# Initial the dht device, with data pin connected to:
|
# Initial the dht device, with data pin connected to:
|
||||||
if not DEBUG:
|
if not DEBUG:
|
||||||
self.__dht_device__ = adafruit_dht.DHT22(gpio)
|
self.__dht_device__ = adafruit_dht.DHT22(gpio, use_pulseio=False)
|
||||||
# Initialise background_task
|
# Initialise background_task
|
||||||
background_task.__init__(self)
|
background_task.__init__(self)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user