I'm working on a device where I would like the user to be able to configure their device by way of a sketch in the Arduino IDE. I have an Arduino library which includes all the usbdrv code. I have managed to clean up all the compile warnings and errors and I have one last remaining error which is bugging my brain out:
Code: Select all
AxeIo/axeio.cpp.o: In function `controllerInit()':
/Users/jnh/Documents/Arduino/libraries/AxeIo/axeio.cpp:568: undefined reference to `usbInit()'
so axeio.h/cpp is my Arduino library, from the sketch's setup() method controllerInit() is called which in turn calls:
Code: Select all
void controllerInit() {
blinkinatorSetup();
wdt_enable(WDTO_1S);
hardwareInit();
odDebugInit();
usbInit();
sei();
}
Interesting that it doesn't complain about odDebugInit, just usbInit. Does anyone have any ideas of where I've gone wrong?
The complete code can be seen here: https://github.com/axeio/thinkinator_fi ... ration/lib