You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# DHT11 Python library for Pycom
1
+
# DHT Python library for Pycom (sensor DTH11 , DTH22)
2
2
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.
4
4
5
5
# Usage
6
6
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.
8
8
2. Call `read()` method, which will return `DHT11Result` object with actual values and error code.
0 commit comments