Forum >DF Robot Project error
DF Robot Project error

Hi all,
I am using the DFRobot Beginner kit for Arduino.
I am up to project 3 and I am getting errors, even directly copy and pasting the code from the guide.
The error is on the “void loop() {” line and the error message is “Compilation error: a function-definition is not allowed here before '{' token”.
Could someone perhaps explain the solve?
For those interested, it is page 35 of the PDF.
Thanks