Hi, I'm trying to follow the instructions in this blog post to create an arduino device that emulates a USB keyboard. I've hit a few bumps in the road and this last one's got me stumped. My best hope is that I'm using the wrong version of the V-USB for Arduino project. I got it from here:
And that required cutting out just the "UsbKeyboard" directory under "Libraries", and then I found that it was built on top of an old version of the USB libraries, and saw guidance from elsewhere to whomp the old copy with new stuff from here:
That replaced most of the files in the UsbKeyboard folder. That left a compile error that was pretty easy to sort, but I'm getting this link-time error now, and it's mystifying:
Compiling debug version of 'Sketch1' for 'Arduino/Genuino Uno' Error compiling for board Arduino/Genuino Uno Debug build failed for project 'Sketch1' WInterrupts.c.o (symbol from plugin)*: In function attachInterrupt (.text+0x0)*: multiple definition of __vector_1 usbdrvasm.S.o*: C:\Program Files (x86)\Arduino\libraries\UsbKeyboard\usbdrvasm16.inc:34: first defined here cctmpOVV.ltrans0.ltrans.o*: In function __vector_1 WInterrupts.c:309: multiple definition of __vector_1 usbdrvasm.S.o*: C:\Program Files (x86)\Arduino\libraries\UsbKeyboard\usbdrvasm16.inc:34: first defined here cctmpOVV.ltrans0.ltrans.o*: In function __base_ctor UsbKeyboard.h:139: undefined reference to usbInit() UsbKeyboard.h:146: undefined reference to usbSetInterrupt(unsigned char*, unsigned char) collect2.exe*: error: ld returned 1 exit status
There is no __vector_1 anywhere and I don't see how creative macro's could make it either. The undefined references seem like they should be easier to solve, but I haven't managed it yet.
Any tips would be appreciated.