Go Down

Topic: newPing library clash (Read 349 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy