From 47fcaf53599a524b0621fca4bf2ee785058654d7 Mon Sep 17 00:00:00 2001 From: Neradoc Date: Mon, 28 Mar 2022 16:59:55 +0200 Subject: [PATCH] Fix documentation --- adafruit_dht.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/adafruit_dht.py b/adafruit_dht.py index cd998dc..6653c83 100644 --- a/adafruit_dht.py +++ b/adafruit_dht.py @@ -51,7 +51,13 @@ class DHTBase: - """base support for DHT11 and DHT22 devices""" + """base support for DHT11 and DHT22 devices + + :param bool dht11: True if device is DHT11, otherwise DHT22. + :param ~board.Pin pin: digital pin used for communication + :param int trig_wait: length of time to hold trigger in LOW state (microseconds) + :param bool use_pulseio: False to force bitbang when pulseio available (only with Blinka) + """ __hiLevel = 51 @@ -64,12 +70,6 @@ def __init__( *, max_pulses: int = 81 ): - """ - :param boolean dht11: True if device is DHT11, otherwise DHT22. - :param ~board.Pin pin: digital pin used for communication - :param int trig_wait: length of time to hold trigger in LOW state (microseconds) - :param boolean use_pulseio: False to force bitbang when pulseio available (only with Blinka) - """ self._dht11 = dht11 self._pin = pin self._trig_wait = trig_wait