pulseio activated for my raspis

This commit is contained in:
Dirk Alders 2020-09-29 18:21:56 +02:00
parent a0bfadcce8
commit 8ca6a2723a

2
dht.py
View File

@ -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, use_pulseio=False) self.__dht_device__ = adafruit_dht.DHT22(gpio)
# Initialise background_task # Initialise background_task
background_task.__init__(self) background_task.__init__(self)