digistump / DigisparkArduinoIntegration

DEPRECATED - REPLACED BY: https://github.com/digistump/DigistumpArduino
280 stars 330 forks source link

Cannot combine SoftSerial with DigiKeyboard #15

Open supersjimmie opened 7 years ago

supersjimmie commented 7 years ago

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/usbdrvasm165.inc:41: 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?

aknik commented 6 years ago

Me too +1:

faustinoaq commented 5 years ago

See: https://github.com/J-Rios/Digispark_SoftSerial-INT0