https://harizanov.com/2013/03/detecting-usb-connection-on-the-funky-v2/
Detecting USB connection on the Funky v2