I'm having problem when I try to upload my code which contains both librarys.
When I // comment on of them, upload runs smoothly.
I'm getting this error:
Servo\avr\Servo.cpp.o: In function __vector_17':** **C:\Program Files (x86)\Arduino\libraries\Servo\src\avr/Servo.cpp:81: multiple definition of __vector_17' VirtualWire\VirtualWire.cpp.o:C:\Program Files (x86)\Arduino\libraries\VirtualWire/VirtualWire.cpp:792: first defined here c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
Someone wrote that the problem is that both VirtualWire and Servo want to use the Timer1 hardware
timer.
In file included from C:\Program Files (x86)\Arduino\libraries\VirtualWire/VirtualWire.h:269:0,
** from ALARM_BT_SONAR_RF_v4.ino:6:** C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:117:14: error: conflicting declaration 'typedef bool boolean' typedef bool boolean;
** ^** In file included from ALARM_BT_SONAR_RF_v4.ino:1:0: C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:59:17: error: 'boolean' has a previous declaration as 'typedef uint8_t boolean' typedef uint8_t boolean;
C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:59:17: error: 'boolean' has a previous declaration as 'typedef uint8_t boolean'
typedef uint8_t boolean;
C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:59:17: error: 'boolean' has a previous declaration as 'typedef uint8_t boolean'
typedef uint8_t boolean;
Just comment-out the typedef in "ServoTimer2.h"
Did you meant on this?
typedef uint8_t boolean;
Because I'm getting this after I commented:
In file included from ALARM_BT_SONAR_RF_v4.ino:1:0: C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:96:2: error: 'boolean' does not name a type
** boolean attached(); // return true if this servo is attached**
** ^** C:\Users\OldSkooler\Documents\Arduino\libraries\ServoTimer2/ServoTimer2.h:116:2: error: 'boolean' does not name a type
** boolean attached(int); // return true if the servo on the given channel is attached**