14

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?

Zero point
  • 153
  • 4
  • 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

1 Answers1

18

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.

Majenko
  • 103,876
  • 5
  • 75
  • 133