Aq0amancer
Member
Dear Forum,
I am playing around with my own version of the USB Midi controller using Teensy 4.0 and I am using VS Code + PlatformIO to write my .cpp files (instead of .ino files in Arduino IDE).
Now I was able to compile my sketch using "USB Type: Serial + MIDI" with Arduino IDE but I can not seem to be able to select this option via VS Code + Platformio.
My question is, how can I make use of the usbMIDI functionality with PlatformIO and .cpp files?
The main issue is that my computer does not recognize Teensy as a MIDI device after compiling my code:
Thank you for any help!
Aq0amancer
I am playing around with my own version of the USB Midi controller using Teensy 4.0 and I am using VS Code + PlatformIO to write my .cpp files (instead of .ino files in Arduino IDE).
Now I was able to compile my sketch using "USB Type: Serial + MIDI" with Arduino IDE but I can not seem to be able to select this option via VS Code + Platformio.
My question is, how can I make use of the usbMIDI functionality with PlatformIO and .cpp files?
The main issue is that my computer does not recognize Teensy as a MIDI device after compiling my code:
Code:
#include <MIDI.h>
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, usbMIDI);
void setup(){
usbMIDI.begin();
}
void loop()
{
usbMIDI.read();
}
Thank you for any help!
Aq0amancer