platform-teensy icon indicating copy to clipboard operation
platform-teensy copied to clipboard

Make Serial Monitor work with USB Type: "MIDI"

Open venelinpetrov opened this issue 9 years ago • 8 comments

Refer to this discussion: https://community.platformio.org/t/teensy-use-serial-monitor-when-usb-type-midi/742

venelinpetrov avatar Sep 11 '16 09:09 venelinpetrov

Did you try adding -DUSB_MIDI_SERIAL to your platformio.ini build_flags line?

blackketter avatar Sep 11 '16 17:09 blackketter

@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?

venelinpetrov avatar Sep 11 '16 19:09 venelinpetrov

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...

serialmidi.zip

blackketter avatar Sep 11 '16 19:09 blackketter

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 avatar Sep 13 '16 17:09 venelinpetrov

@venelinpetrov I'm getting the same error as you. Any progress in the meantime? Did you get it to work?

jaard avatar Aug 08 '17 10:08 jaard

@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 :)

venelinpetrov avatar Aug 11 '17 07:08 venelinpetrov

teensy_serialmon could be useful here, see https://github.com/platformio/platform-teensy/issues/36

ivankravets avatar Sep 10 '18 15:09 ivankravets

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 ;) )

venelinpetrov avatar Sep 10 '18 15:09 venelinpetrov