The Arduino console gives me: expected unqualified-id before 'else' What's wrong with my code?
Here's the code http://pastebin.com/esU80naM
If you can, also give me repaired code on pastebin
Thanks!
Problem is with line 164 in pastebin else if (digitalRead(c3)==LOW){
It's a simple and obvious typo and the error message already tells you everything you need to know. Change:
to:
Note that the error reported by the compiler relates to an
else
clause without a precedingif
, so you need to work backwards from the reported error to find the source of the problem. This is quite common and you will no doubt encounter similar problems again in the future.