Hi, it's possible to know if the USB is connected or not to T3.2?
I hope that it's possible to know for make a specific code if is connected to the USB or by battery.
Thank u
Dan
You will have to roll your own solution. Another thing I can think of would be to set a timer that periodically sends date to the host. If the function returns 0 bytes sent, you could likely infer that the connection was lost.
Depending on the Teensy, you would might need a voltage divider to bring the voltage down to 0..3.3v. You wouldn't need an analog read, a normal digital read would do.