Skip to content

Commit 5ea7589

Browse files
committed
Formatting
1 parent 16400df commit 5ea7589

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

adafruit_dht.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def __init__(self, dht11, pin, trig_wait, use_pulseio):
7070
self.pulse_in = PulseIn(self._pin, 81, True)
7171

7272
def exit(self):
73+
""" Cleans up the PulseIn process. Must be called explicitly """
7374
if self._use_pulseio:
7475
print("De-initializing self.pulse_in")
7576
self.pulse_in.deinit()

examples/dht_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# you can pass DHT22 use_pulseio=False if you wouldn't like to use pulseio.
99
# This may be necessary on a Linux single board computer like the Raspberry Pi,
1010
# but it will not work in CircuitPython.
11-
#dhtDevice = adafruit_dht.DHT22(board.D18, use_pulseio=False)
11+
# dhtDevice = adafruit_dht.DHT22(board.D18, use_pulseio=False)
1212

1313
while True:
1414
try:

0 commit comments

Comments
 (0)