small project


i have a problem with me code, i want to let the buzzer play a tone when the ir recieves a code. the problem is every time i use the code tone(buzzer,1000); for example he cant compile the file for arduino uno.

this is the faultmessage:
Arduino: 1.8.12 (Windows Store (Windows 10), Board:“Arduino Uno”

Tone.cpp.o (symbol from plugin): In function `timer0_pin_port’:

(.text+0x0): multiple definition of `__vector_7’

libraries\IRremote-2.2.3\IRremote.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Fout bij het compileren voor board Arduino Uno

Dit rapport zou meer informatie bevatten met
“Uitgebreide uitvoer weergeven tijden compilatie”
optie aan in Bestand → Voorkeuren.

kamer_papa.ino (514 Bytes)


if you type `timer0_pin_port' into a google search you get lots of hits giving information about this.

Basically two bits of code (libraries maybe) are trying to set the same timer.

With a bit more reading you may find solutions to the problem there.