Having an issue with my code. I'm getting a bunch of these errors for all of my functions: error: "expected constructor, destructor, or type conversion before ';' token".
I never used to get these errors when uploading this sketch (on a previous Arduino version), so I don't know what's causing it. The code looks fine to me, but there must be something wrong.
You Will likely get more help if you post your code not as an attachment but directly in the post using code </> tag so that the code appears something like this
J-M-L:
Ok cant read from my smartphone. Will have a look another time
Can you post the output of the compiler error. Very often it tells a lot right there in the very first lines
Is this what you mean? It's the output of the error:
Code:80: error: expected constructor, destructor, or type conversion before ';' token
Code:81: error: expected constructor, destructor, or type conversion before ';' token
Code:82: error: expected constructor, destructor, or type conversion before ';' token
Code:83: error: expected constructor, destructor, or type conversion before ';' token
Code:84: error: expected constructor, destructor, or type conversion before ';' token
Code:85: error: expected constructor, destructor, or type conversion before ';' token
Code:86: error: expected constructor, destructor, or type conversion before ';' token
Code:87: error: expected constructor, destructor, or type conversion before ';' token
Code:88: error: expected constructor, destructor, or type conversion before ';' token
Code:89: error: expected constructor, destructor, or type conversion before ';' token
Code:90: error: expected constructor, destructor, or type conversion before ';' token
Code:91: error: expected declaration before '}' token
On each of those lines is a new function. I'll paste the loop block below:
I found the same thing. You have a comment line immediately before "void loop() {" with forward backslashes on the end. As a result, this is treated as a comment:- "void loop() {"
If you add a blank line before the beginning of your 'loop()' function, the code compiles fine.
As Coding Badly said, it's not a good idea to put line continuation characters at the end of comment lines for no good reason.
(I was originally in the process of posting when Coding Badly beat me to the punch, so I aborted. )