How can one use “USB type: MIDI” (during build) like in Arduino IDE, so the platform understands the standard functions in
platform = teensy
framework = arduino
board = teensy20
build_flags = -DUSB-MIDI
OH, yeah, yeah, I pasted it wrongly, in my code it’s actually
build_flags = -DUSB_MIDI (or
build_flags = -USB_MIDI, the same), but it keeps throwing the exception:
error: 'usbMIDI was not declared in this scope. I’ve seen this error before in Arduino IDE, when USB type is not properly set to MIDI.
Thanks for your cooperation, however steps 2 and/or 3 didn’t resolve the problem. I logged an issue here:
Cannot build Teensy20 project with USB Type: "MIDI" · Issue #722 · platformio/platformio-core · GitHub
September 4, 2016, 4:43pm
By the way the same problem can be reproduced with Atom IDE, if you click “Build” from the graphical interface OR open a console window from IDE and type
Could you re-test it with PlatformIO 3.0?
Dear PlatformIO User!
We have been silent for a while, not because we haven’t been working around the clock, but we’ve had to address some important architectural changes to whole PlatformIO ecosystem. We’ve been working hard to ensure that migration from PlatformIO 2.0 to PlatformIO 3.0 passes without significant issues.
What is new
PlatformIO Plus: Professional solutions for an awesome open source PlatformIO ecosystem (see PlatformIO story below)
Decentralized architecture for development …
September 8, 2016, 8:16pm
Sorry, didn’t want to upgrade, I was in the middle of something. Now I tested with v3 and so far everything seem to work correctly.