HELP!
I was writing a sketch to try interrupts (first time using interrupts) and uploaded the following code to my Pro Micro:
int SwitchPin = 3;
ISR(INT0_vect)
{
Serial.println("INTERRUPT");
}
// the setup routine runs once when you press reset:
void setup()
{
Serial.begin(9600);
bitSet(SREG,7); // enable Global Interrupts
bitClear(EICRA,7);
bitSet(EICRA,6);
bitSet(EIMSK,0);
}
// the loop routine runs over and over again forever:
void loop()
{
}
Now when a USB cable is plugged into the Pro Micro Windows reports “USB Device Not Recognized”.
I have tried using an UNO as an ISP but avrdude reports “Yikes! Invalid device signature” (not sure if this is a result of the sketch or something else I am doing wrong)
Any suggestions on how to restore it? Or is my poor little Pro Micro dead?