close



I've just fixed the problem of compiling the USBKeyboard library.
My approach is simply to modify the header file usbdrv.h.

In usbdrv.h
Add the following statements for usbInit() and usbPoll().


#ifdef __cplusplus
extern "C"{
#endif
USB_PUBLIC void usbInit(void);
#ifdef __cplusplus
} // extern "C"
#endif
 

#ifdef __cplusplus
extern "C"{
#endif
USB_PUBLIC void usbPoll(void);
#ifdef __cplusplus
} // extern "C"
#endif
 

And then copy the UsbKeyboard folder to the libraries folder of the arduino enviroment. You may delete the object files (*.o), arduino IDE will compile source code files (including the assembler code). Load and compile (verify) the UsbKeyboardDemo sketch. It should work.



From Arduino USB shield




 
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Galileo 的頭像
    Galileo

    Galileo's Sky

    Galileo 發表在 痞客邦 留言(0) 人氣()