Switching USB modes within code? (Teensy 2.0)

Status
Not open for further replies.
I'm working on a mouse-emulating interface, and one of the features of the Teensy 2.0 that I've been loving is the "Keyboard + Mouse + Joystick" mode, since it doesn't require my users to install any drivers. However, I would also like to be able to reprogram certain settings on the board from a GUI program, via Serial. I've been able to get this working with the "Serial + Keyboard + Mouse + Joystick" mode, but if I do that, every new computer I plug into needs the driver to be installed.

What would make my day would be some Arduino command that would allow me to switch modes with a line of code. I could then include a mode switch on my device to trigger this command and allow for the best of both worlds. However, I have not been able to find such a thing. I doubt that it exists, but I figured it was worth checking here just in case.

Thanks for any feedback you can provide!
 
Status
Not open for further replies.
Back
Top