declare }

My program keeps coming up with an issue of the bracket placement. I've tried declaring it but still can't seem to solve the problem. Any advice and guidance would be greatly appreciated

Here's the error message and the program is attatched;

Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"

ROBOTWARSSK:26:12: error: expected constructor, destructor, or type conversion before '(' token

colorWipe(strip.Color(200, 0, 0), 10);

^

ROBOTWARSSK:27:1: error: expected declaration before '}' token

}

^

exit status 1
expected constructor, destructor, or type conversion before '(' token

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

ROBOTWARSSK.ino (4.17 KB)

You have a problem of extra and missing braces in your code.

A very helpful troubleshooting tool is the Auto Format feature (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor). If you do an Auto Format and then compare the resulting indentation to your intended program structure, it will quickly point you to where there is a missing or extra brace.

Another useful feature of the Arduino IDE/Arduino Web Editor is that when you place the cursor next to one bracket, it puts a box around the matching bracket. In the Arduino IDE, if the cursor is next to the closing bracket and the opening bracket is off the screen then it will show the opening bracket line in a tool tip after a short delay.

could you highlight where i'm wrong?

Please post your code (properly)...
Some of us can’t see it on mobile devices when clipped as an attachment.
thx

void setup() had THREE curly braces (should be pairs).

Therefore

colorWipe(strip.Color(200, 0, 0), 10); // is outside void setup()

Leo..