Library for the control of the DHT22.
Dependents: Interfacage_Disco_DHT22
Diff: DHT22.h
- Revision:
- 2:8c7fa818f329
- Parent:
- 0:a4f404326ee0
--- a/DHT22.h Thu Apr 16 08:55:38 2020 +0000 +++ b/DHT22.h Thu Apr 16 12:00:14 2020 +0000 @@ -7,7 +7,7 @@ { private: PinName pin_name; - int m_temperature, m_humidity; + float m_temperature, m_humidity; short shortFromBits(bool bits[]); @@ -25,12 +25,12 @@ /* Returns the value of the temperature captured by the sensor * - PRE: The method read() has been performed at least once. */ - int getTemperature(); + float getTemperature(); /* Returns the value of the humidity captured by the sensor * - PRE: The method read() has been performed at least once. */ - int getHumidity(); + float getHumidity(); }; #endif \ No newline at end of file