1

Errors

_123:31: error: expected ')' before ';' token
_123:35: error: expected primary-expression before ')' token
_123:35: error: expected ';' before ')' token

Those are the errors I am having. How can I fix it?

Line 31 and 35 are my problems.

Code

#define DATA 0
#define LATCH 1
#define CLOCK 2
#define DATA2 3
#define LATCH2 4
#define CLOCK2 5

void setup()
{
    pinMode(LATCH, OUTPUT);
    pinMode(CLOCK, OUTPUT);
    pinMode(DATA, OUTPUT);
    pinMode(LATCH2, OUTPUT);
    pinMode(CLOCK2, OUTPUT);
    pinMode(DATA2, OUTPUT);
}

void loop()
{
    int i;
    for (i = 0; i < 256; i++)
    {
        digitalWrite(LATCH, LOW);
        shiftOut(DATA, CLOCK, MSBFIRST, i);
        digitalWrite(LATCH, HIGH);
        delay(200);
    }
    int c;
    for (c = 0; c < 256; c++)
    (
        digitalWrite(LATCH2, LOW);
        shiftOut(DATA2, CLOCK2, MSBFIRST, c);
        digitalWrite(LATCH2, HIGH);
        delay(100);
    )
}
0

1 Answer 1

1

Your last for loop is using brackets ( rather than curly braces {

Sign up to request clarification or add additional context in comments.

2 Comments

are you talking about after int c;?
@JonathanL Two lines under int c;. See how you have a ( there? Its supposed to be a { like in your first for loop :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.