Etienne Charbonnier
/
plant_monitoring
Plant Monitoring CS
Diff: DHT22.h
- Revision:
- 59:169324c8e604
diff -r 8d4bde75ebb9 -r 169324c8e604 DHT22.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DHT22.h Wed Mar 25 15:46:56 2020 +0000 @@ -0,0 +1,17 @@ +#ifndef MBED_DHT22_H +#define MBED_DHT22_H + +#include "mbed.h" + +class DHT22 { +private: + int _temperature,_humidity; + PinName _data_pin; +public: + DHT22(PinName); + bool sample(); + int getTemperature(); + int getHumidity(); +}; + +#endif \ No newline at end of file