I'm working on a project which requires I connect both an RF receiver and a Servo motor to an Arduino Uno. However, when I compile the code, I get an error that both libraries are trying to define "__vector_11". I've determined that they are both trying to use the 16-bit timer on the Uno board. Is there any way for me to control the Servo with one of the 8 bit timers? Are there any other solutions to this problem?
Servo/Servo.cpp.o: In function __vector_11': /Users/AMeehan17/Downloads/Arduino 2.app/Contents/Resources/Java/libraries/Servo/Servo.cpp:103: multiple definition of __vector_11'
VirtualWire/VirtualWire.cpp.o:/Users/AMeehan17/Documents/Arduino/libraries/VirtualWire/VirtualWire.cpp:588: first defined here
I've tried the library and I've edited the source code so that the .cpp file is #include <arduino.h>
I'm still getting a bunch of errors about "WConstants.h" though it's no longer in the C++ code. I've removed the library from the arduino compiling program and readded it with the edited source code. Here are the errors I'm getting when I do that:
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp:6:26: error: WConstants.h: No such file or directory
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp: In function 'void __vector_9()':
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp:36: error: 'LOW' was not declared in this scope
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp:36: error: 'digitalWrite' was not declared in this scope
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp:43: error: 'HIGH' was not declared in this scope
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp:43: error: 'digitalWrite' was not declared in this scope
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp: In member function 'uint8_t ServoTimer2::attach(int)':
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp:66: error: 'OUTPUT' was not declared in this scope
/Users/AMeehan17/Documents/Arduino/libraries/ServoTimer2/ServoTimer2.cpp:66: error: 'pinMode' was not declared in this scope