I have accidentally implemented a program that imitates the click of the mouse.

The problem is that now I can´t delete the program because each time that I connect the USB, the computer starts clicking everything and it is not possible to upload a new program.

Can I solve this problem?

  • 2
    That is actually pretty funny. Now I'll be sure never to write a program on my Arduino that resets my computer :+)
    – Rob
    Nov 23 '15 at 10:10

Hold the RESET button as you plug the Arduino in and keep it pressed all the time it's plugged into your computer. Load Blink.ino into the IDE and compile it. Press the UPLOAD button in the IDE and move the mouse to somewhere "safe". Release the RESET button.

Do those last three steps in rapid succession and you should be fine.


A less obvious option is to just buy a new one. They are so cheap, you will never make up the time spent to fix the problem. Best keep some in stock.

But Majenko's answer is still cool and sophisticated, so trying to ask on SE doesn't hurt.

  • 2
    If you had posted this before Majenko answered with a quick fix, and Zero Point said it worked, this might be good advice. The fact you posted afterwards - and acknowledge reading it - means it is unhelpful, as it isn't true. Jun 16 '15 at 1:11
  • 2
    Yeah, really. Please send me all of the old ones you replace with new ones.
    – user6569
    Jun 16 '15 at 3:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.