I'm using the v-usb for Arduino library http://code.google.com/p/vusb-for-arduino/
. It contains a keyboard demo which I have copied to my /sketchbook/libraries folder. This compiles no problem. My only problem is that there is a usbconfig.h file that ships with the library that in my opinion should actually sit with the user sketch, since this file needs to be configured per sketch in principle. My problem is that the sketch doesn't compile if I copy the usbconfig.h file from the library folder into the sketch folder. The error I then get is: /sketchbook/libraries/UsbKeyboard/usbdrv.h:13:23: error: usbconfig.h: No such file or directory
. This happens even though I have
at the top of the sketch.
So my question is how do I correctly separate user configuration from the library folder while maintaining the following sequence of includes:
User sketch #include a library file (usbdrv.h) residing in the libraries folder, the library file in turn #include a user supplied config file (usbconfig) located in the sketch folder?