The IDE kept bugging me about updating to 2.0.4. so I did so and then I tried compiling a script onto my brand new Pro Micro, which produced this code:
In file included from C:\Users\FunkyMunky\Documents\Arduino\libraries\Control_Surface\src/MIDI_Interfaces/USBMIDI/USBMIDI.hpp:100:0,
from C:\Users\FunkyMunky\Documents\Arduino\libraries\Control_Surface\src/MIDI_Interfaces/USBMIDI_Interface.hpp:4,
from C:\Users\FunkyMunky\Documents\Arduino\libraries\Control_Surface\src/Control_Surface.h:129,
from C:\Users\FunkyMunky\Documents\Arduino\Control Surface (with Encoders)\Control_Surface__with_Encoders___we_are_get_copy_20230317153253\Control_Surface__with_Encoders___we_are_get_copy_20230317153253.ino:1:
C:\Users\FunkyMunky\Documents\Arduino\libraries\Control_Surface\src/MIDI_Interfaces/USBMIDI/USBMIDI_MIDIUSB.hpp:4:10: fatal error: MIDIUSB.h: No such file or directory
#include <MIDIUSB.h>
^~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
My Pro Micro is on COM 6. The code, thankfully, still compiles on my Arduino UNO but, alas, the Pro Micro is the one I really want to work with.
Yeah, I stupidly just updated without checking the version I had first. So I don't know what I had before. I installed it 1-1 1/2 years ago though. Any ideas on how to find that out? I was thinking of rolling back to the previous version.
As I understand, 2.0x has categorical changes vs. previous ones, some bugs are being worked out (I mean, a lot more vs. say 1.89 that I use). So it's not impossible. But maybe you mean, a previous version of 2.0. Heck, sometimes a bug fix breaks something.
That seems to be the wrong library to re-install. You have to (re)install the MIDIUSB library.
I have no experience with the libraries mentioned. I installed the control surface library and compiled the first example in IDE 2.0.4 without problems. Looking at the verbose output, I see lines with
Yes, after hours of researching, I finally figured out that A. as a Pro Micro/Leonardo, it needs another library with which to be set up as a USB/MIDI Device, and B. upon reading the various instructions for Control Surface, I did, indeed figure out that what I needed was MIDIUSB Library. So I found the library, successfully installed it, and all the errors went away. My Pro Micro is now working like a champ as a MIDI Device.