NicoHood / HID

Bring enhanced HID functions to your Arduino!
http://www.nicohood.de
MIT License
2.37k stars 409 forks source link

reset USB whilst script is running #410

Open spriggsy opened 1 year ago

spriggsy commented 1 year ago

I need to reset my AT32u4 upon certain conditions. this is done by sending a hid command from my android device that halts the watchdog. unfortunately doing it this way breaks the HID communication. is there a way of disabling/stopping the USB library before i reset so that when it restarts it gets re-enumerated by the host?

Ive tried calling RawHID.end() and RawHID.disable() but it still does not get dropped from windows

Many thanks

Spriggsy