7 years, 9 months ago.

Is there a way to check whether the USB is connected?

I want to enter to console mode when the USB is connected, otherwise the board has to sleep.

You can check the first time using the .configured() function at least (you need to use the connect(false) option, but it depends a bit on how that is done on which USB device you are creating. I don't know if that works after more than the first time.

posted by Erik - 05 Jul 2016

Where can I find that function?

posted by Viviana Marcela Quirama Cañaveral 07 Jul 2016
Be the first to answer this question.