General

DF Robot Project error

userHead Shai.Shepes 2023-01-01 10:36:30 120 Views1 Replies

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

 

 

2023-01-31 15:21:07

Hi

 

Could you please attach a screenshot of your code here? 

 

According to the error message, chances are that you miss an “{”  or “}” somewhere.

 

Hope it can help!

userHeadPic Tonny12138