Browse Source

no pulseio for dht

spike_filter
Dirk Alders 4 years ago
parent
commit
a0bfadcce8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      dht.py

+ 1
- 1
dht.py View File

20
         self.__data_callback__ = data_callback
20
         self.__data_callback__ = data_callback
21
         # Initial the dht device, with data pin connected to:
21
         # Initial the dht device, with data pin connected to:
22
         if not DEBUG:
22
         if not DEBUG:
23
-            self.__dht_device__ = adafruit_dht.DHT22(gpio)
23
+            self.__dht_device__ = adafruit_dht.DHT22(gpio, use_pulseio=False)
24
         # Initialise background_task
24
         # Initialise background_task
25
         background_task.__init__(self)
25
         background_task.__init__(self)
26
 
26
 

Loading…
Cancel
Save