Before you begin
Anytime you use the Arduino Leonardo as a keyboard or mouse, you risk losing the capability to upload code to the Leonardo through the USB port. From our experience, without proper programming procedures, the Leonardo essentially takes over USB communication. This guide demonstrates how to repair this issue so that your Arduino Leonardo can be used in other projects.