Library for reading data from the RHT03 / DHT22 digital humidity & temperature sensor.
Dependents: Pachube-v2_DHT22 DHT_TEST2 DHT_CANSAT Projeto_Monit_Remoto ... more
DHT22.h
00001 #ifndef MBED_DHT22_H 00002 #define MBED_DHT22_H 00003 00004 #include "mbed.h" 00005 00006 class DHT22 { 00007 private: 00008 int _temperature,_humidity; 00009 PinName _data_pin; 00010 public: 00011 DHT22(PinName); 00012 bool sample(); 00013 int getTemperature(); 00014 int getHumidity(); 00015 }; 00016 00017 #endif
Generated on Sun Jul 17 2022 15:57:37 by 1.7.2