I have never seen this error message before and I have no idea how to fix it.
core.a(Tone.cpp.o): In function `__vector_7':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Tone.cpp:535: multiple definition of `__vector_7'
NewPing\NewPing.cpp.o:C:\Users\Lonnie\Documents\Arduino\libraries\NewPing/NewPing.cpp:214: first defined here
The program the error was thrown with is meant to do some fancy initialization stuff with an adafruit LCD, control an LED that can be dimmed with a pot, and be able to shut off after a while if no motion is detected with a sonar sensor
Here is the code:
THANKS for the help!
are librarys all installed???
It would appear that NewPing and Tone are trying to use the same timer. You'll have to edit one of the libraries to use a different timer.
Yes all libraries are installed - how do I do that?
A quick google search for " Arduino Tone Different Timer" yielded this.
I haven't looked at it. I don't know if it is any good or not. But it might give you a starting point.
Okay I added the NewTone library but it still throws the same error
I actually tried a different hardware method that got rid of the sonar sensor and fixed it - I never did figure out why they were conflicting or how to fix it