Delete a script in arduino leonardo(bad usb)

Hello
I bought a badusb with an arduino leonardo board.I put a script to move the mouse but I can no longer remove the script from the key. if you could help me it would not be refused

Welcome to the forum

I assume that you have uploaded a sketch to the Leo that moves the mouse as soon as you plug it in, thus making uploading another sketch very difficult because of the mouse movements

If so, try this

  • unplug the Leo from the PC
  • in the IDE start a new sketch
  • press and hold the Leo reset button
  • plug the Leo into the PC and keep the reset button pressed
  • upload the sketch
  • when you see the "Uploading" message in the IDE release the Leo reset button and the blank sketch should upload

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.