Digistump Forums

The Digispark => Digispark (Original) Support => Topic started by: 7eggert on August 19, 2016, 11:41:16 pm

Title: Detect if a digistump is connected to USB
Post by: 7eggert on August 19, 2016, 11:41:16 pm
I'd like to do someting like this:

if (connected_to_usb_host()) {
 while (1) delay (1000); // be nice to PCs
}

wreck_havock_on_the_usb_pins(); // I need all of those pins

I googled, I searched the forums. I'm surprised to not instantly find a solution in the FAQ, even if it would be "you can't".
Title: Re: Detect if a digistump is connected to USB
Post by: balizeiro on May 10, 2017, 04:20:41 pm
Did you managed to find a solution for this?