// vamos utilizar o comando (for) nele podemos fazer repetição na programação
int pinLed[9] = {12, 11, 10, 9, 8, 7, 6, 5, 4}; // Nessa variavel quarda varialvel, no pinLed[9] eu to informadno que tem 9 pinos é a chamda variavel matriz
// Geralemtne as váriaveis começam com os valores de 0
int x;
int numeroLed;
void setup() {
// put your setup code here, to run once:
for (x = 0; x <= 8; x = x + 1) {
pinMode(pinLed[x], OUTPUT);
}
}
void loop() {
// put your main code here, to run repeatedly:
numeroLed = 0;
for (numeroLed = 0; numeroLed <= 8; numeroLed + numeroLed + 1) {
digitalWrite(pinLed[numeroLed], HIGH);
}
}