(new to arduino) what is wrong with the code below, I can see port 9 and 10 blinks at same time, later port 11 blinks.
when I try with port 3, 5, 6 it works fine. I have problem only with 9,10,11 ports
const int col[3] = {9,10,11};
void setup() {
for (int thisPin = 0; thisPin < 3; thisPin++) {
pinMode(col[thisPin], OUTPUT);
}
}
void loop() {
refreshScreen();
}
void refreshScreen() {
for (int index = 0; index < 3; index++) {
digitalWrite(col[index], HIGH);
delay(300);
digitalWrite(col[index], LOW);
}
}
Does my arduino has defect or is it PWM ports behave like this!!! ?