expected ')' before ';' token Me salta ese error!!!

int led= {9,10,11};

int cont=0;

void setup() {

for(int i=0; i < 3; i++){
pinMode(led*, OUTPUT);*

  • }*

  • Serial.begin(9600);*
    }
    void ledColor(){

  • switch(cont){*

  • case 0:*

  • if(int i=0; i < 200; i++)*

  • {*

  • digitalWrite(led[0], i);*

  • delay(50);*

  • }*

  • digitalWrite(led[0], LOW);*

  • break;*

  • case 1:*

  • if(int i=0; i < 200; i++)*

  • {*

  • digitalWrite(led[1], i);*

  • delay(50);*

  • }*

  • digitalWrite(led[1], LOW);*

  • break;*

  • case 2:*

  • if(int i=0; i < 200; i++)*

  • {*

  • digitalWrite(led[2], i);*

  • delay(50);*

  • }*

  • digitalWrite(led[2], LOW);*

  • break;*

  • }*

}
void loop() {

  • for(int i=0; i<3; i++)*

  • {*

  • ledColor();*

  • cont++;*

  • if(cont >= 4)*

  • {*

  • cont=0;*

  • }*

  • }*
    }

if(int i=0; i < 200; i++)
      {
        digitalWrite(led[1], i);
        delay(50);
      }

Why?
Did you mean “for”, not “if”?
Why?
Please remember to use code tags when posting code

What's the point of doing a digitalWrite of a value between 0 and 199? digitalWrite is only ever LOW or HIGH.

All the above, plus why do you have a case statement in the function when you can write all of them as

digitalWrite(led[cont], i);