int GREEN1 = 1;
int YELLOW1 = 2;
int RED1 = 3;
int GREEN2 = 4;
int YELLOW2 = 5;
int RED2 = 6;
void setup() {
pinMode (1, OUTPUT); //LED GREEN1
pinMode (2, OUTPUT); //LED YELLOW1
pinMode (3, OUTPUT); //LED RED1
pinMode (4, OUTPUT); //LED GREEN2
pinMode (5, OUTPUT); //LED YELLOW2
pinMode (6, OUTPUT); //LED RED2
}
void loop() {
// ECLAIRAGE DE LA LED VERT POUR LE 1ER PANEAU , ET LE ROUGE POUR LE 2EM PANEAU
digitalWrite (1, HIGH);
digitalWrite (2, LOW);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay(5000);
// CLIGNOTEMENT DE LA LED ORANGE POUR LE 1ER PANEAU 3 FOIS ET LECLAIRAGE DE LED ROUGE POUR LE 2EM¨PANEAU
digitalWrite (1, LOW);
digitalWrite (2, HIGH);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, HIGH);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, HIGH);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay(500);
// ECLAIRAGE DE LA LED VERT POUR LE 2EM PANEAU , ET LE ROUGE POUR LE 1EM PANEAU
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, HIGH);
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay(5000);
// CLIGNOTEMENT DE LA LED ORANGE POUR LE 2EM PANEAU 3 FOIS ET LE ROUGE LED POUR LE 1ER PANEAU
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay(500);
digitalWrite (1, LOW);
digitalWrite (2, LOW);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay(500);
//LE FONCTIONEMENT VAS REMIS A ZERO
}