I'm stuck....a couple of years ago I was experimenting with (learning) about Arduinos and I wrote a short program to sort of play "Smoke on the water" (Deep Purple) when pressing a button on an old TV remote. It compiled, uploaded and worked.
2 years on I have tried to get it working again. "Exit Status 1" compiler error. and I can't figure out what I've done wrong. Arduino IDE has been updated and I'm using the 2.7 release of IRremote.
This is the error message:
"Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(.text+0x0): multiple definition of `__vector_7'
C:\Users\B~1\AppData\Local\Temp\arduino_build_848743\libraries\IRremote\IRremote.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Using library IRremote at version 2.7.0 in folder: C:\Users\Bla\Documents\Arduino\libraries\IRremote
The built-in 'tone()' function and the IRRemote library both use the same timer. The IRRemote library seems to default to Timer2 but I think you can put:#define IR_USE_TIMER1
just above #include <IRRemote.h> to switch to Timer1.