I've dug into the code to try and figure out how it's done. The Teensy 3 source has the Keyboard, Mouse, Joystick and MIDI descriptors in the same file, usb_desc.c.
Is it possible to use the MIDI descriptors in the same way as the Espruino Keyboard, Mouse and Tablet examples? Or is the USB-MIDI interface different to the HID interface?
I'm going to have a go at this but I thought it would be worth asking first as my USB knowledge is non-existent.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
I'm trying to work out if it's possible to use the new Pico USB HID support to get the Pico to work as a USB-MIDI controller.
I want to be able to plug a Pico into the USB port of a computer and have the Pico send MIDI messages without any USB to MIDI adaptors in between.
The Teensy 3 USB library seems to support this and HIDUINO does similar for the Arduino Uno.
I've dug into the code to try and figure out how it's done. The Teensy 3 source has the Keyboard, Mouse, Joystick and MIDI descriptors in the same file, usb_desc.c.
Mouse descriptors:
https://github.com/PaulStoffregen/cores/blob/master/teensy3/usb_desc.c#L159-L198
MIDI descriptors:
https://github.com/PaulStoffregen/cores/blob/master/teensy3/usb_desc.c#L482-L563
Is it possible to use the MIDI descriptors in the same way as the Espruino Keyboard, Mouse and Tablet examples? Or is the USB-MIDI interface different to the HID interface?
I'm going to have a go at this but I thought it would be worth asking first as my USB knowledge is non-existent.
Thanks for any help!
Andrew