i have a program for radio controlling an rc car everytime i verify it or try to upload it it gives me the error
libraries\Servo\avr\Servo.cpp.o (symbol from plugin): In function `ServoCount':
(.text+0x0): multiple definition of `__vector_11'
libraries\VirtualWire\VirtualWire.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "VirtualWire.h"
Used: C:\Users\leojd\Documents\Arduino\libraries\VirtualWire
Multiple libraries were found for "Servo.h"
Used: C:\Program
exit status 1
Error compiling for board Arduino/Genuino Uno.
is there anything i can do i have tried two different arduino unos to no difference
i think somewhere there is a Servo library that uses Timer2 instead? Not sure what it's called or where to find it, but that might be enough for you to find it.
DrAzzy:
i think somewhere there is a Servo library that uses Timer2 instead? Not sure what it's called or where to find it, but that might be enough for you to find it.
It is helpfully called ServoTimer2.h It works but you need to take care because commands are different from the standard Servo.h. The write() command only takes pulse widths in microseconds NOT angles so you'll probably need some minor code changes.