Is it possible to setup (I assume with some #defines and #includes?) a sketch to override the USB Type selected via the menus in Teensyduino? I'm programming two different boards simultaneously (they interact), and it'd be great if I could force each sketch to it's own USB type instead of having to change the menu option each time I upload.
I've tried a number of things (some hacking of the Teensy core files related to USB (usb.c, usb_api.h, etc)) but since I need to put my tag (TPP_MIDI or TPP_SERIAL) inside the sketch - which happens after all the usb related #includes - it fails. Any thoughts?
I've tried a number of things (some hacking of the Teensy core files related to USB (usb.c, usb_api.h, etc)) but since I need to put my tag (TPP_MIDI or TPP_SERIAL) inside the sketch - which happens after all the usb related #includes - it fails. Any thoughts?