For my project, I'd like to be able to know if the Teensy 3.1 is connected to the USB port of a computer or a phone (via USB on-the-go or the iPhone usb adapter). The primary reason is so I can know how much power to draw for my various components. A computer allows me to draw more power, but with a phone, I have to turn a few things off. Maybe there's a way to know how much power a device can provide? Any ideas much appreciated!