Hi im working on a project and im getting this error "multiple definition of `__vector_11'"
here is my code
#include <NewTone.h>
#include <Servo.h>
#include <IRremote.h>
#include <Ultrasonic.h>
#include <LiquidCrystal.h>unsigned long Value1 = 0x1FE58A7; // where XXXXXXXX is on our your remote's values
unsigned long Value2 = 0x1FEA05F; // where XXXXXXXX is another button on your remoteint buzzer = 7;
int distance;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Ultrasonic ultrasonic(A0,A1);
int RECV_PIN = 6;
IRrecv irrecv(RECV_PIN);
decode_results results;Servo servo1;
// the setup routine runs once when you press reset:
void setup() {
lcd.begin(16, 2); //16 rows, 2 columns
pinMode(buzzer, OUTPUT);Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver// initialize the digital pin as an output.
servo1.attach(10); // attack servo to digital pin 10
}// the loop routine runs over and over again forever:
void loop() {
lcd.clear();
lcd.print(" Ptuxiakh "); // You can change this message.
lcd.setCursor(0, 1);
lcd.print("Apostash: ");
lcd.print(ultrasonic.Ranging(CM));
lcd.print("cm");delay(1000); // 1sec delay
Serial.print(ultrasonic.Ranging(CM));
Serial.println("cm");distance = ultrasonic.Ranging(CM);
if (distance >= 10 && distance <=20){
NewTone(buzzer, 3000, 50);}
else if (distance >=5 && distance <10){
NewTone(buzzer, 5000, 200);
}
else if (distance <5){
NewTone(buzzer, 4000, 800);
}if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}if(results.value == Value1) {
servo1.write(160);
}
else if (results.value == Value2){
servo1.write(75);
}
}
i searched the forum and i found that some libraries conflict with each other.
The problem is that when i use the tone library it conflicts with iremote library and when i use newtone library it conflicts with the servo library.
What i can do to make the project works?
Thank you in advance