Make Serial Monitor work with USB Type: "MIDI"
Refer to this discussion: https://community.platformio.org/t/teensy-use-serial-monitor-when-usb-type-midi/742
Did you try adding -DUSB_MIDI_SERIAL to your platformio.ini build_flags line?
@blackketter thanks for the answer. Unfortunately my project doesn't build if I change the build flag to -DUSB_MIDI_SERIAL, saying that usbMIDI is not defined in the current scope. Does this work on your side?
I was able to build with this platformio.ini and test serial midi sketch. I'm not set up here to test the actual midi, but it builds and the serial works...
I don't use the MIDI.h dependency. As I stated in my previous post I use usbMIDI. It seems to be automatically included with Arduino.h or something, which is the only header file in my project... Any insights?
@venelinpetrov I'm getting the same error as you. Any progress in the meantime? Did you get it to work?
@jaard I use build_flags = -D USB_MIDI and usbMIDI. With this configuration everything works nicely except the monitoring. I haven't tried any more blackketter's solution, because my configuration is technically correct. I don't think I should change it. Better solution would be either to contribute and implement the functionality in question :) or back someone who has time and knowledge:
https://www.bountysource.com/teams/platformio/issues :)
teensy_serialmon could be useful here, see https://github.com/platformio/platform-teensy/issues/36
Nice! It's been a long time and it will be hard to test it now, but feel free to close the issue, because it's not directly related to PlatfotmIO anyways (and Paul said it will work ;) )