Author Topic: Error when compiling with both SoftSerial and DigiKeyboard  (Read 1918 times)


  • Newbie
  • *
  • Posts: 3
i get an error:

libraries\DigisparkKeyboard\usbdrvasm.S.o: In function `__vector_2':

C:\...\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\DigisparkKeyboard/ multiple definition of `__vector_2'

libraries\DigisparkTinyPinChange\TinyPinChange.cpp.o:C:\...\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\DigisparkTinyPinChange/TinyPinChange.cpp:57: first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
When I try to use both SoftSerial and DigiKeyboard.

#include <SoftSerial.h>
#include "DigiKeyboard.h"

SoftSerial mySerial(2, 3); // RX, TX
I guess the __vector_2 is defined in both libraries, but how can I fix that?


  • Newbie
  • *
  • Posts: 3
Re: Error when compiling with both SoftSerial and DigiKeyboard
« Reply #1 on: May 25, 2017, 10:46:44 am »
I want to have a serial connection with (from) an ESP8266 that sends data over serial to my digistump, and then the digistump sends it to my pc as a USB Keyboard.
For now, I guess only RX and about 19k2 baurdate on the digistump would be enough, if TX would be too much for the device.

After more searching this forum, I think this is what I need to do?
#include <SoftSerial_INT0.h>  //

Any recommendations to get things working smooth?