byte ledPin [] = (4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
I'm getting an error message for this particular line of code, what is exit status one and does anyone know how to fix it?
byte ledPin [] = (4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
I'm getting an error message for this particular line of code, what is exit status one and does anyone know how to fix it?
Array initializers are contained between curly brackets (or quotes for char arrays), not parenthesis.
In the future...
To post code and/or error messages:
Before posting again, you should read the three locked topics at the top of the Programming Questions forum, and any links to which these posts point.
If your project involves wiring, please provide a schematic and/or a wiring diagram and/or a photograph of the wiring.
Good Luck!
vaj4088:
In the future...To post code and/or error messages:
- Use CTRL-T in the Arduino IDE to autoformat your complete code.
- Paste the complete autoformatted code between code tags (the </> button)
so that we can easily see and deal with your code.- Paste the complete error message between code tags (the </> button)
so that we can easily see and deal with your messages.Before posting again, you should read the three locked topics at the top of the Programming Questions forum, and any links to which these posts point.
If your project involves wiring, please provide a schematic and/or a wiring diagram and/or a photograph of the wiring.
Good Luck!
Thanks, will do