There is no more code beyond what I have there
Yes, but the end of the loop() function happens before the end of the code that you have. All executable code must be in a function. Not all of yours is, which is why the compiler is complaining.
There is no more code beyond what I have there
Yes, but the end of the loop() function happens before the end of the code that you have. All executable code must be in a function. Not all of yours is, which is why the compiler is complaining.