When I try to use both MANCHESTER library and Tone I get the following error message:
core.a(Tone.cpp.o): In function `__vector_7':
C:\crusso\00. Proyectos\00. Arduino\arduino-1.0.5\hardware\arduino\cores\arduino/Tone.cpp:535: multiple definition of `__vector_7'
MANCHESTER\MANCHESTER.cpp.o:C:\crusso\00. Proyectos\00. Arduino\arduino-1.0.5\libraries\MANCHESTER/MANCHESTER.cpp:363: first defined here
I need both MANCHESTER library and Tone.
I've tried to use MANCHESTER with other libraries (for instance IRremote) and got the same error.
What should I do to rewrite the code and use other interrupt? I've never worked with interrupts in Arduino (i did with C++ but a long long time ago...)
IRremote\IRremote.cpp.o: In function `__vector_7':
C:\crusso\00. Proyectos\00. Arduino\arduino-1.0.5\libraries\IRremote/IRremote.cpp:311: multiple definition of `__vector_7'
MANCHESTER\MANCHESTER.cpp.o:C:\crusso\00. Proyectos\00. Arduino\arduino-1.0.5\libraries\MANCHESTER/MANCHESTER.cpp:363: first defined here
Do you need to send or receive manchester data? Both IRremote and Manchester user Timer 2, you are now using Timer 1 for tones, and Timer 0 is used for millis and delays. You are running out of timers.
My goal is to receive data with Manchester library and then use IRremote to send IR codes. No worry about tone library, because i can go without it.
What are the code lines that i have to modify in order to use another timer? (for instance, to change IRremote to use timer 1 instead of timer 2)