I’m programming a MIDI controller using Teensy 4.1 and the MIDIUsb library, which only supports Atmega32U4.
I can compile the application with no problem on the Arduino IDE but using Platformio in MSCode, the following error is thrown:
#error MIDIUSB can only be used with an USB MCU
I’m not sure what to do to correct this. As it is now, I use a pre-compiler directive to ignore all calls to the library so that I can use the MSCode IDE for development. But in order to test the app, I have to compile and upload using the Arduino IDE. It works, but it is an extra step I could do without.