fix: move IOT to capteur subfolder

This commit is contained in:
2023-06-25 10:38:25 +02:00
parent 36a1fe4d91
commit 8c588ed2c0
22 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include "Program.h"
Program::Program() {
// Startup
Serial.begin(MONITOR_SPEED);
this->DHT = new HumiTemp(D4, DHT22);
}
void Program::loop() {
// Loop
delay(2000);
Serial.println(this->DHT->read());
}

11
IOT/Capteur/src/main.cpp Normal file
View File

@ -0,0 +1,11 @@
#include "Program.h"
Program* program;
void setup() {
program = new Program();
}
void loop() {
program->loop();
}