Answer the question
In order to leave comments, you need to log in
How to fix tone() conflict with NewPing?
Gives error:
Arduino: 1.8.9 Hourly Build 2019/03/18 11:33 (Windows 10), Board: "Arduino/Genuino Uno"
Tone.cpp.o (symbol from plugin): In function `timer0_pin_port':
(. text+0x0): multiple definition of `__vector_7'
libraries\NewPing\NewPing.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error for Arduino/Genuino Uno board.
Without tone(), the program works, I think it conflicts with the NewPing library, but I don’t know how to fix it.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question