Expression preceding parentheses?

The error is referring to this line:

delay(1000);

Here you’re (apparently) trying to call delay as a function.

However, delay is declared as:

unsigned int delay = 1000;

It’s just a number, not a function, hence you can’t call it.

Leave a Comment