Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with virtualwire.h library #83

Open
saurabhlanje199 opened this issue Aug 22, 2021 · 2 comments
Open

Conflict with virtualwire.h library #83

saurabhlanje199 opened this issue Aug 22, 2021 · 2 comments

Comments

@saurabhlanje199
Copy link

It shows

\Servo.cpp.o (symbol from plugin): In function `ServoCount':
(.text+0x0): multiple definition of `__vector_11'

\VirtualWire\VirtualWire.cpp.o (symbol from plugin): first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "Servo.h"

The problem is that both Servo.cpp and VirtualWire.cpp try to use the same interrupt vector. Arduino Uno has only a single 16-bit timer, and Servo.cpp library seems to want it. The problem is that VirtualWire library also wants to use the only 16-bit timer available.

@PassiSchoppi
Copy link

I experience the same issue with the "Adafruit_VL53L0X.h" library.
Have you found a quick fix?

@fxf06
Copy link

fxf06 commented Jun 11, 2022

There is an answer here.
Unfortunately, the two libs use the same timer. Looking for a solution (some mentioned ServoTimer2, but does not this to work either, and I don't how to convert angles into ms...). Seems to be a recurring issue :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants