This is wrong:
for(int i = 0; i < 8; i++) {
pinMode(ledPins, OUTPUT);
}
You have to access the i-th element of the array:
for(int i = 0; i < 8; i++) {
pinMode(ledPins[i], OUTPUT);
}
This is wrong:
for(int i = 0; i < 8; i++) {
pinMode(ledPins, OUTPUT);
}
You have to access the i-th element of the array:
for(int i = 0; i < 8; i++) {
pinMode(ledPins[i], OUTPUT);
}