Hello, I need help with my arduino leonardo, this morning I was trying to use a sd module by using icsp, from one moment to another I could not upload codes and I checked the devices and my arduino leonardo was being recognized by my computer as an arduino yun, I uninstalled the drivers and reinstalled but not I had no results, I also tried the arduino on another computer and it also appears as an arduino yun. Unable to upload codes to the arduino. Please tell me if I can repair it or should I buy another one.
Ah. That's an interesting way of "bricking" a Leonardo. You must have done an upload with Tools > Board > Arduino Yun selected.
Here's how to fix it:
File > Preferences
Check the box next to "Show verbose output during: upload".
Click "OK".
Tools > Board > Arduino Leonardo
Resize the black console window at the bottom of the Arduino IDE window until it's big enough that you can see a reasonable amount of text.
Sketch > Upload
Watch the black console window. After the compilation finishes, you'll see some text like "Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes." As soon as you see that, press the reset button on the Leonardo.
The upload should complete successfully and your board should be recognized as a Leonardo and be able to be uploaded to normally again.