Hello, this is likely a duplicate post but I've just spent the last couple hours searching with no luck.
I'm trying to work the usb_keyboard, usb_mouse, and uart examples into one so that when I plug the teensy in, two devices appear and I can control both over serial from another machine. So far I've gotten the mouse and uart projects merged and can control those just fine. But natrually the mouse/kbd projects don't merge nicely as there is a lot of duplicate code and some conflicts that are unclear (to me) how to sort out. In particular, I don't know enough about USB yet to know how to modify the static data to specify multiple endpoints etc.
This looks a lot simpler with the teensyduino path but I'm trying to do this using straight C. Is there an example out there somewhere that does mouse+keyboard at the same time for Teensy 2.0? If not, where is the best place to go to learn about how I might understand the USB stuff so that I know what changes are needed? Or if this is answered already can someone please post a link to the other threads?
Patrick
I'm trying to work the usb_keyboard, usb_mouse, and uart examples into one so that when I plug the teensy in, two devices appear and I can control both over serial from another machine. So far I've gotten the mouse and uart projects merged and can control those just fine. But natrually the mouse/kbd projects don't merge nicely as there is a lot of duplicate code and some conflicts that are unclear (to me) how to sort out. In particular, I don't know enough about USB yet to know how to modify the static data to specify multiple endpoints etc.
This looks a lot simpler with the teensyduino path but I'm trying to do this using straight C. Is there an example out there somewhere that does mouse+keyboard at the same time for Teensy 2.0? If not, where is the best place to go to learn about how I might understand the USB stuff so that I know what changes are needed? Or if this is answered already can someone please post a link to the other threads?
Patrick