A library for the use of AM2303 (a.k.a. DHT22), a temperature and humidity sensor.
Dependents: AM2303_Hello_World
Fork of DHT11 by
Revision 5:da586c935e88, committed 2014-09-10
- Comitter:
- s_inoue_mbed
- Date:
- Wed Sep 10 17:35:27 2014 +0000
- Parent:
- 4:48798b126d93
- Child:
- 6:257e2ab66d0f
- Commit message:
- Doxygen documentation has been corrected.
Changed in this revision
DHT11.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;