Error: collect2: error: id return 1 exit status

You have a conflict where libraries and/or functions are trying to use the same timer.

Maybe the tone() function and the Servo library. Maybe try the ServoTimer2 library?

More information if you Google "collect2: error: id return 1 exit status".

In the future please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

1 Like