Projet_VictorAvecUnK/board.cpp

27 lines
567 B
C++
Raw Normal View History

2020-05-12 09:52:03 +02:00
#include "core_simulation.h"
#include "mydevices.h"
int main(){
// creation d'une board
Board esp8266;
// achat des senseurs et actionneurs
AnalogSensorTemperature temperature(DELAY,TEMP);
2020-05-12 11:22:59 +02:00
//DigitalActuatorLED led1(DELAY);
2020-05-12 11:43:08 +02:00
IntelligentDigitalActuatorLED led1(DELAY);
2020-05-12 09:52:03 +02:00
I2CActuatorScreen screen;
2020-05-12 11:43:08 +02:00
AnalogSensorLuminosity luminosite(DELAY);
2020-05-12 09:52:03 +02:00
// branchement des capteurs actionneurs
esp8266.pin(1,temperature);
esp8266.pin(0,led1);
2020-05-12 11:43:08 +02:00
esp8266.pin(2, luminosite);
2020-05-12 09:52:03 +02:00
esp8266.i2c(1,screen);
// allumage de la carte
esp8266.run();
return 0;
}