Curly braces | MadMaker

Curly braces

The curly braces {} in C code (which is what you are writing for the Arduino) have got be correct. All your blocks of code need to be surrounded by curly braces. If you get it wrong, you can get all kinds of weird compiler error messages. If you're lucky, you might see:

"expected '}' at end of input"

but there is a good chance it will be more cryptic than that. Luckily, the IDE gives you some help with this. When you put your cursor next to any curly brace in the IDE (either opening or closing), the matching (closing or opening) brace will get a little circle around it. This makes it a lot easier to work out if you have all the right braces and no extra ones.