int i;
void setup() {
// put your setup code here, to run once:
// Définir les broches 6 à 13 comme des broches de sortie
for(i = 6; i <= 13; i++) {
pinMode(i, OUTPUT);
}
}
void loop() {
// put your main code here, to run repeatedly:
// Itérer sur les broches 6 à 13
for (i = 6; i <= 13; i++) {
// Créer un effet de type PWM en définissant la broche à HIGH puis à LOW avec un délai
for (int j = 0; j < 250; j = j + 10) {
digitalWrite(i, HIGH); // Mettre la broche actuelle à HIGH
delay(30); // Attendre 30 millisecondes
digitalWrite(i, LOW); // Mettre la broche actuelle à LOW
delay(30); // Attendre encore 30 millisecondes
}
}
}