int Max_vigilance = 2;
int Phenomene0int = 1;
int Phenomene0vigi = 1;
int Phenomene1int = 4;
int Phenomene1vigi = 2;
int Phenomene2int = 3;
int Phenomene2vigi = 2;
int Phenomene3int = 2;
int Phenomene3vigi = 2;
int Phenomene4int = 5;
int Phenomene4vigi = 1;
int Phenomene5int = 7;
int Phenomene5vigi = 1;
int phenomenes[6][2] = {
{ Phenomene0int, Phenomene0vigi },
{ Phenomene1int, Phenomene1vigi },
{ Phenomene2int, Phenomene2vigi },
{ Phenomene3int, Phenomene3vigi },
{ Phenomene4int, Phenomene4vigi },
{ Phenomene5int, Phenomene5vigi }
};
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
for (int i = 0; i <= 5; i++) {
if (
Max_vigilance == phenomenes[i][1]
)
{
Serial.print("Vigilance max: " );
Serial.print(Max_vigilance);
Serial.print(" ligne phénomène lié: ");
// Serial.println(i);
Serial.println(phenomenes[i][0]);
}
};
Serial.println("//////////////////////////");
delay(5000); // this speeds up the simulation
}