I need to loop through different Pins in an Uno board, specifically over Pin # 3,5,6,9,10,11. (The PWM ones). I know how to loop over consecutive Pins:
for (int thisPin = 2; thisPin <= 11; thisPin++)
{
pinMode(thisPin, OUTPUT);
}
I do not know how to create a list of just the Pins I want and loop though it.