I want to know when something is connected to USB port by blinking an LED.
I suppose have to check PB10 UOTGVBOF, but how to do this ?
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.
Sign up to join this communityI want to know when something is connected to USB port by blinking an LED.
I suppose have to check PB10 UOTGVBOF, but how to do this ?
What I'm going to say is probably not the most efficient way to do it, but it should work: if your DUE is used as gadget and you wnat to detect the presence of a master, connect a GPIO to the +Vcc line of the usb port and either poll or program an edge triggered interrupt to detect when the line goes high.