Forum Rule: Always post complete source code & details to reproduce any issue!
-
Switch between midi and joystick mode, possible?
Hi,
Looking into teensy LC for a button box, a matrix of buttons and rotation encoders.
Mostly to control iracing, a race game. But I'm also in to Ableton, a music program.
So my question is, is it possible to add a button and use it to switch the teensy between joystick and midi mode?
(Did search but could not find the answer)
-
Senior Member+
Helped somebody do something once - booting with two unique USB DESC lists. Perhaps setup_early_hook() is called before usb_init() - IIRC it involved swapping out the array of descriptors in the hook so when the USB code started it followed the selected list.
As done IIRC it was done before a restart and the EEPROM was updated with a value. In the hook EEPROM was read and the descriptor list was chosen and set for later use.
It was almost 2 yrs back - quick search of the helper sketch used with that doesn't pop up - and also failed to find it with forum search so no help there ...
Found the thread with BING search :: pjrc.com/threads/53608-Configure-USB-after-sketch-has-already-loaded
Not noted what Teensy that was ... not sure if T_LC would end up being cramped on any resource ...
-
-
Senior Member+
Indeed it is not standard supported behavior
Like most things ... it can be made to work I suspect ... That poster got it working with the tips - but didn't post actual solution 
Using twin dedicated T_LC's certainly less complexity and work in the code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules