A
A
Alan Chernov2019-04-04 11:57:18
Arduino
Alan Chernov, 2019-04-04 11:57:18

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

1 answer(s)
K
kalapanga, 2019-04-04
@kalapanga

Everything is in the documentation for the library: https://bitbucket.org/teckel12/arduino-new-ping/wi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question