feat : gestion Capteur DJT (a tester)
This commit is contained in:
@ -24,6 +24,7 @@ public:
|
||||
* @return String valeur format "XX/YY" X% et Y°C
|
||||
*/
|
||||
String read();
|
||||
|
||||
private:
|
||||
|
||||
DHT* capteur;
|
||||
|
@ -1,9 +1,8 @@
|
||||
#include "../include/HumiTemp.h"
|
||||
|
||||
|
||||
HumiTemp::HumiTemp(int pin, String type, String fullVall):
|
||||
Capteur("H/T",fullVall){
|
||||
this->capteur = new DHT(pin,type);
|
||||
this->capteur = new DHT(pin, type.c_str());
|
||||
this->capteur->begin();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user