# Servo.h and RadioHead library conflict

**URL:** <https://forum.arduino.cc/t/servo-h-and-radiohead-library-conflict/506718>\
**Category:** General Guidance\
**Created:** [February 7, 2018, 3:52am UTC](https://forum.arduino.cc/t/servo-h-and-radiohead-library-conflict/506718 "2018-02-07T03:52:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrobelek](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wrobelek](https://forum.arduino.cc/u/wrobelek)\
**Post date:** [February 7, 2018, 3:52am UTC](https://forum.arduino.cc/t/servo-h-and-radiohead-library-conflict/506718/1 "2018-02-07T03:52:47Z")

</div>

I am using Feather32u4 from adafruit and Arduino IDE. The problem is that when I include radiohead #include \<RH\_RF95.h\> and #include \<Servo.h\>, I get error message. After doing some research, it looks like they are both running on a same timer. Does anyone know how to fix this problem? I already tried using the ServoTimer2 library that uses timer2 but I believe that Feather32u4 does not have timer2 but rather timer3.

Arduino: 1.8.1 (Windows 10), Board: "Adafruit Feather 32u4"

libraries\RadioHead\RH\_ASK.cpp.o (symbol from plugin): In function `RH\_ASK::maxMessageLength()':

(.text+0x0): multiple definition of `\_\_vector\_17'

libraries\Servo\avr\Servo.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1  
Error compiling for board Adafruit Feather 32u4.

This report would have more information with  
"Show verbose output during compilation"  
option enabled in File -\> Preferences.

---

<div class="post-metadata">

**Author:** ![Przemek333](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@Przemek333](https://forum.arduino.cc/u/Przemek333)\
**Post date:** [March 4, 2018, 12:44am UTC](https://forum.arduino.cc/t/servo-h-and-radiohead-library-conflict/506718/2 "2018-03-04T00:44:31Z")

</div>

See: [Arduino Uno not including two header files at the same time - Arduino Stack Exchange](https://arduino.stackexchange.com/questions/35721/arduino-uno-not-including-two-header-files-at-the-same-time)  
You have to define  
#define RH\_ASK\_ARDUINO\_USE\_TIMER2  
in  
RH\_ASK.h

---

<div class="post-metadata">

**Author:** ![TomGeorge](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomgeorge/32/215261_2.png) [@TomGeorge](https://forum.arduino.cc/u/TomGeorge)\
**Post date:** [March 4, 2018, 9:06am UTC](https://forum.arduino.cc/t/servo-h-and-radiohead-library-conflict/506718/3 "2018-03-04T09:06:08Z")

</div>

Hi,  
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.  
[http://forum.arduino.cc/index.php/topic,148850.0.html](http://forum.arduino.cc/index.php/topic,148850.0.html) then look down to item #7 about how to post your code.  
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom.. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 6:28pm UTC](https://forum.arduino.cc/t/servo-h-and-radiohead-library-conflict/506718/4 "2021-05-05T18:28:59Z")

</div>

Closed on May 5, 2021, 6:28pm UTC


