Teensy with usb midi

Can anyone help me compile for teensy31. I have tried using “build_flags = -UUSB_SERIAL -DUSB-MIDI”, but I cannot get rid of -DUSB_SERIAL from the compile.

You have mistake in -DUSB-MIDI. It should be -DUSB_MIDI

Thank you, that was it! Just a case of seeing what you expect to see. These old eyes fail me again! All is well now…

Happy Coding with PlatformIO! :blush: