when i try to compile the next program i get the error expected initializer before 'void'
int ret=100,x
void setup()
{for (x=13; x=>4; x--)// put your setup code here, to run once:
{pinMode (x,OUTPUT)
}
}
void loop() {
{for(x=13; x=>4; x--)
{digitalWrite(x;1);
delat(ret);
digitalWrite(x,0);// put your main code here, to run repeatedly:
delay(ret);
}
}
You're missing a semi-colon at the end of the first line. Same for your pinMode statement.
When you have your code in the IDE, use Ctrl-T to reformat it. Your code then becomes:
int ret = 100, x // As sterretje pointed out, where's the semicolon??
void setup()
{ for (x = 13; x => 4; x--) // put your setup code here, to run once:
{ pinMode (x, OUTPUT)
}
}
void loop() { // Let's see...3 opening braces, two closing braces...
{ for (x = 13; x => 4; x--)
{ digitalWrite(x; 1);
delat(ret);
digitalWrite(x, 0); // put your main code here, to run repeatedly:
delay(ret);
}
}
...and spelling error in one of the delays, inverted order of >= in one of the for loops, semicolon instead of comma in one of the digitalWrite.
thanks to every one
btw i´m a begineer in this plataform
thanks for help me