Reflash the Driver
After editing the boards.txt
file, you need to reflash the driver to your Leonardo for the changes to take effect.
-
Restart your computer to ensure all changes are applied.
-
Open the Arduino IDE.
-
Open the
MouseDriver.ino
file. -
Go to Tools > Board > Arduino AVR Boards and select your spoofed board name (the name you entered in the
boards.txt
file). -
Go to Tools > Port and select the appropriate port for your Leonardo.
-
Click the "Upload" button (right arrow icon) in the top-left corner of the Arduino IDE.
-
Wait for the compilation and upload process to complete. You should see "Done uploading" in the bottom output pane when it's finished.
If you encounter any issues during the upload process, double-check your edits in the boards.txt
file and ensure you selected the correct board and port in the Arduino IDE.
Congratulations! You've successfully spoofed your Arduino Leonardo. Your computer should now recognize it as your mouse model when it's connected.