Skip to content

Commit 47fcaf5

Browse files
committed
Fix documentation
1 parent c5ce95d commit 47fcaf5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adafruit_dht.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@
5151

5252

5353
class DHTBase:
54-
"""base support for DHT11 and DHT22 devices"""
54+
"""base support for DHT11 and DHT22 devices
55+
56+
:param bool dht11: True if device is DHT11, otherwise DHT22.
57+
:param ~board.Pin pin: digital pin used for communication
58+
:param int trig_wait: length of time to hold trigger in LOW state (microseconds)
59+
:param bool use_pulseio: False to force bitbang when pulseio available (only with Blinka)
60+
"""
5561

5662
__hiLevel = 51
5763

@@ -64,12 +70,6 @@ def __init__(
6470
*,
6571
max_pulses: int = 81
6672
):
67-
"""
68-
:param boolean dht11: True if device is DHT11, otherwise DHT22.
69-
:param ~board.Pin pin: digital pin used for communication
70-
:param int trig_wait: length of time to hold trigger in LOW state (microseconds)
71-
:param boolean use_pulseio: False to force bitbang when pulseio available (only with Blinka)
72-
"""
7373
self._dht11 = dht11
7474
self._pin = pin
7575
self._trig_wait = trig_wait

0 commit comments

Comments
 (0)