hi i got this error while trying to verify/upload my sketch.
Servo\Servo.cpp.o: In function __vector_11': C:\Program Files\arduino-1.0.1\libraries\Servo/Servo.cpp:103: multiple definition of
__vector_11'
VirtualWire\VirtualWire.cpp.o:C:\Program Files\arduino-1.0.1\libraries\VirtualWire/VirtualWire.cpp:416: first defined here
here is my full code
#include <VirtualWire.h>
#include <Servo.h>
int ledPin = 13;
Servo motorPin;
Servo motorPin2;
Servo motorPin3;
Servo motorPin4;
void setup()
{
Serial.begin(9600); // Debugging only
Serial.println("setup");
// Initialise the IO and ISR
vw_set_ptt_inverted(true); // Required for DR3100
vw_setup(2000); // Bits per sec
vw_set_rx_pin(2);
vw_rx_start(); // Start the receiver PLL running
pinMode(ledPin, OUTPUT);
motorPin.attach(12);
motorPin2.attach(11);
motorPin3.attach(9);
motorPin4.attach(8);
}
void loop()
{
uint8_t buf[VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;
if (vw_get_message(buf, &buflen)) // Non-blocking
{
int i= 0;
// Flash a light to show received good message
// Message with a good checksum received, dump it.
Serial.print("Got: ");
if(buf[i] == '1')
{
digitalWrite(ledPin, HIGH);
motorPin.write(180);
motorPin2.write(180);
motorPin3.write(180);
motorPin4.write(180);
}
if(buf[i] == '2')
{
digitalWrite(ledPin, HIGH);
motorPin.write(180);
motorPin2.write(0);
motorPin3.write(180);
motorPin4.write(0);
}
if(buf[i] == '3')
{
digitalWrite(ledPin, HIGH);
motorPin.write(0);
motorPin2.write(180);
motorPin3.write(0);
motorPin4.write(180);
}
if(buf[i] == '4')
{
digitalWrite(ledPin, HIGH);
motorPin.write(0);
motorPin2.write(0);
motorPin3.write(0);
motorPin4.write(0);
}
if(buf[i] == '5')
{
digitalWrite(ledPin, HIGH);
motorPin.write(90);
motorPin2.write(90);
motorPin3.write(90);
motorPin4.write(90);
}
digitalWrite(ledPin, LOW);
}
}
also some little info
I'm using
-Arduino uno
-RF Link Transmitter - 434MHz
-RF Link Receiver - 4800bps (434MHz)
-using Arduino 1.01
so do you guys have any idea on how i can fix this? :~