Yes, I followed suit roughly from HIDDeviceInfo.ino when I went digging in the examples.
I do think a callback would be helpful, but then again... If the 'how to' is in the examples like this, then maybe it's not...
It seems that USBDriver has an operator overload for bool.
So as I only have one MIDIDevice being connected, I'm currently doing this check inside loop:
void loop() {
myusb.Task();
midiDevice.read();
I'm using the USBHost_t36 with a MIDIDevice. I'm wondering what the method is for detecting if a USB device has been disconnected or reconnected during runtime.
I'm looking (as a simple starting base), to just call a...