Hello I am new to Arduino and I need some help.
I get the error message : sketch_feb12a.ino: In function 'void loop()':
sketch_feb12a:34: error: expected )' before ';' token sketch_feb12a:34: error: expected
;' before ')' token
sketch_feb12a:41: error: expected )' before ';' token sketch_feb12a:41: error: expected
;' before ')' token
sketch_feb12a:48: error: expected )' before ';' token sketch_feb12a:48: error: expected
;' before ')' token
sketch_feb12a:55: error: expected )' before ';' token sketch_feb12a:55: error: expected
;' before ')' token
to the following code:
int timer = 1000;
int i = 1;
void setup()
{ for (int thisPin1 = 1; thisPin1 < 13; thisPin1++)
for (int thisPin2 = 13; thisPin2 < 25; thisPin2++)
for (int thisPin3 = 24; thisPin3 < 38; thisPin3++)
for (int thisPin4 = 37; thisPin4 < 43; thisPin4++)
{
pinMode(thisPin1, OUTPUT);
pinMode(thisPin2, OUTPUT);
pinMode(thisPin3, OUTPUT);
pinMode(thisPin4, OUTPUT);
pinMode(51, OUTPUT);
pinMode(52, OUTPUT);
pinMode(53, OUTPUT);
}}
void loop()
{ while (i<2) {i++;
{ for (int thisPin1 = 1; thisPin1 < 13; thisPin1++)
for (int thisPin2 = 13; thisPin2 < 25; thisPin2++)
for (int thisPin3 = 24; thisPin3 < 38; thisPin3++)
for (int thisPin4 = 37; thisPin4 < 43; thisPin4++)
{
digitalWrite(52, HIGH);
delay(3000);
digitalWrite(52, LOW);
digitalWrite(thisPin1, HIGH);
digitalWrite(53, HIGH);
delay(100);
digitalWrite(53; LOW);
delay(timer);
digitalWrite(thisPin1, LOW);
digitalWrite(thisPin2, HIGH);
digitalWrite(53, HIGH);
delay(100);
digitalWrite(53; LOW);
delay(timer);
digitalWrite(thisPin2, LOW);
digitalWrite(thisPin3, HIGH);
digitalWrite(53, HIGH);
delay(100);
digitalWrite(53; LOW);
delay(timer);
digitalWrite(thisPin3, LOW);
digitalWrite(thisPin4, HIGH);
digitalWrite(53, HIGH);
delay(100);
digitalWrite(53; LOW);
delay(timer);
digitalWrite(thisPin4, LOW);
}}}}
I can not find the problem.
Thanks for your help!!!
S