I use Servo.h with NewTone.h, in my arduino programing
But I cant compiling my project file for arduino mega(2560) How can I fix this problem? please help me.... (I use IRremote.h too.) (Below is a description of error message) (If you want see the more information, I
well give you)
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
libraries\NewTone\NewTone.cpp.o (symbol from plugin): In function `NewTone(unsigned char, unsigned long, unsigned long)':
(.text+0x0): multiple definition of `__vector_17'
libraries\Servo\avr\Servo.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/sehyun/appdata/local/arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "Adafruit_GFX.h"
Used: C:\Program Files (x86)\Arduino\libraries\Adafruit_GFX_Library
Not used: C:\Users\sehyun\Documents\Arduino\libraries\Adafruit_SSD1306
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.