Skip to content

Commit 18084c6

Browse files
authored
Update README for new dht name (not dhtlib)
1 parent 7f964a8 commit 18084c6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Introduction
33
============
44

5-
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-dhtlib/badge/?version=latest
6-
:target: https://circuitpython.readthedocs.io/projects/dhtlib/en/latest/
5+
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-dht/badge/?version=latest
6+
:target: https://circuitpython.readthedocs.io/projects/dht/en/latest/
77
:alt: Documentation Status
88

99
.. image :: https://badges.gitter.im/adafruit/circuitpython.svg
@@ -39,7 +39,7 @@ Of course, you must import the library to use it:
3939

4040
.. code:: python
4141
42-
import adafruit_dhtlib
42+
import adafruit_dht
4343
4444
The DHT type devices use single data wire, so import the board pin
4545

@@ -51,13 +51,13 @@ Now, to initialize the DHT11 device:
5151

5252
.. code:: python
5353
54-
dhtDevice = dht.DHT11(<pin>)
54+
dht_device = adafruit_dht.DHT11(<pin>)
5555
5656
OR initialize the DHT22 device:
5757

5858
.. code:: python
5959
60-
dhtDevice = dht.DHT22(<pin>)
60+
dht_device = adafruit_dht.DHT22(<pin>)
6161
6262
Read temperature and humidity
6363
----------------------------
@@ -66,8 +66,8 @@ Now get the temperature and humidity values
6666

6767
.. code:: python
6868
69-
temperature = dhtDevice.temperature
70-
humidity = dhtDevice.humidity
69+
temperature = dht_device.temperature
70+
humidity = dht_device.humidity
7171
7272
These properties may raise an exception if a problem occurs. You should use try/raise
7373
logic and catch RuntimeError and then retry getting the values after 1/2 second.
@@ -76,7 +76,7 @@ Contributing
7676
============
7777

7878
Contributions are welcome! Please read our `Code of Conduct
79-
<https://github.com/adafruit/Adafruit_CircuitPython_dhtlib/blob/master/CODE_OF_CONDUCT.md>`_
79+
<https://github.com/adafruit/Adafruit_CircuitPython_DHT/blob/master/CODE_OF_CONDUCT.md>`_
8080
before contributing to help this project stay welcoming.
8181

8282
API Reference

0 commit comments

Comments
 (0)