Hi, like the post title says, I'm wondering if there's any library function I can use to test whether or not a usb cable is plugged into the Teensy. I have a project that is compatible with a variety of control standards (midi over usb being one), and I'd like for the board to automatically detect which one the user is working with. Unfortunately this is a very hard topic to google since all the results are just people asking about the connection from their Teensy to the IDE.
Is there any function that exists which will do this? Something like:
Is there any function that exists which will do this? Something like:
Code:
if(usbispluggedin()){
//do usb midi stuff
}