Skip to content

Commit 16400df

Browse files
committed
Cleaned up example
1 parent 5c1da73 commit 16400df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/dht_simpletest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
import adafruit_dht
44

55
# Initial the dht device, with data pin connected to:
6-
dhtDevice = adafruit_dht.DHT22(board.D18, use_pulseio=False)
6+
dhtDevice = adafruit_dht.DHT22(board.D18)
7+
8+
# you can pass DHT22 use_pulseio=False if you wouldn't like to use pulseio.
9+
# This may be necessary on a Linux single board computer like the Raspberry Pi,
10+
# but it will not work in CircuitPython.
11+
#dhtDevice = adafruit_dht.DHT22(board.D18, use_pulseio=False)
712

813
while True:
914
try:

0 commit comments

Comments
 (0)