Stop Leonardo connecting to through USB?

Hi all

I am fairly new to working with Arduino.
I have used the Leonardo as a HID for a number of projects with great success.

My question is this. Is there a way to stop the arduino telling the host commuter that its an arduino and trying to load drivers etc and just say I am a HID.
If I could use a pin to short to ground that stops the communication and allows only the HID communication, that way removing the short will allow me to program the Leonardo.



Yes, I think when you don't use the Serial at all, then the Serial port is not created. I'm not sure what the bootloading will do, you might have to remove the bootloader, by uploading your sketch with a programmer.

Sorry I didn't see your post right away.
Thanks I will try that,