The error is not in what you posted.
All Arduino sketches are required to have the two functions Setup and Loop defined. Yours obviously doesn't and that's why you are getting the error that These two functions are undefined.
The error is not in what you posted.
All Arduino sketches are required to have the two functions Setup and Loop defined. Yours obviously doesn't and that's why you are getting the error that These two functions are undefined.