Skip to content

Commit cd2016f

Browse files
authored
Update README.md
1 parent 5bde756 commit cd2016f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# DHT11 Python library for Pycom
1+
# DHT Python library for Pycom (sensor DTH11 , DTH22)
22

3-
This simple class can be used for reading temperature and humidity values from DHT11 sensor on Pycom Board. Thanks to szazo for the original source code.
3+
This simple class can be used for reading temperature and humidity values from DHT11 and DTH22 sensors on Pycom Board. Thanks to szazo for the original source code.
44

55
# Usage
66

7-
1. Instantiate the `DHT11` class with the pin number as constructor parameter.
7+
1. Instantiate the `DHT` class with the pin number and type of sensor (0=DTH11, 1=DTH22° as constructor parameters.
88
2. Call `read()` method, which will return `DHT11Result` object with actual values and error code.
99

1010
For example:
@@ -13,7 +13,7 @@ For example:
1313
import pycom
1414
import time
1515
from machine import Pin
16-
from dth import DTH11
16+
from dth import DTH
1717

1818
pycom.heartbeat(False)
1919
pycom.rgbled(0x000008) # blue

0 commit comments

Comments
 (0)