A library for the use of DHT11, a temperature and humidity sensor

Dependents:   HTTP_SERVER2 lightweight-weather-station

Revision:
5:da586c935e88
Parent:
4:48798b126d93
Child:
9:056d1e9b428c
diff -r 48798b126d93 -r da586c935e88 DHT11.h
--- a/DHT11.h	Wed Sep 10 17:18:28 2014 +0000
+++ b/DHT11.h	Wed Sep 10 17:35:27 2014 +0000
@@ -44,17 +44,19 @@
      *     3: DHT11 does not respond.
      *     4: DHT11 is not ready.
      *     5: Checksum is incorrect.
-     *     6: Timeout
+     *     6: Timeout.
      */
     int readData(void);
 
     /** Reading the humidity from the data
-     * @return Humidity in % if readData() returns no error. Otherwise, returns 0xffffffff.
+     * @return Humidity in % if readData() returns no error.
+     * Otherwise, returns 0xffffffff.
      */
     int readHumidity(void);
 
     /** Reading the temperature from the data
-     * @return Temperature in Celcius if readData() returns no error. Otherwise, returns 0xffffffff.
+     * @return Temperature in Celcius if readData() returns no error.
+     * Otherwise, returns 0xffffffff.
      */
     int readTemperature(void);
 
@@ -69,7 +71,6 @@
     };
 
 private:
-    PinName _pin;
     DigitalInOut io;
     InterruptIn io_irq;
     Timer t;