Go Down

Topic: newPing library clash (Read 308 times) previous topic - next topic

harshvardhan

i am using HC sr04 distance sensor
with the newPing library

the problem is

when i use new ping library , i am not able to use the tone functions
Quote
core.a(Tone.cpp.o): In function `__vector_7':
C:\Users\Harsh's\Desktop\arduino-1.0.3\hardware\arduino\cores\arduino/Tone.cpp:535: multiple definition of `__vector_7'
NewPing\NewPing.cpp.o:C:\Users\Harsh's\Desktop\arduino-1.0.3\libraries\NewPing/NewPing.cpp:214: first defined here


also when i use lcd.write(from the liquidcrystal library), i have to typecaste the value of a custom created byte .


any suggestions to how to solve this problem? 

HazardsMind

Use the old ping method then.
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

harshvardhan

the old ping is not accurate

this newPing is pretty cool
i would love it if there was a way to run the newPing library

Go Up