I am having a strange problem with arduino Leonardo.
I wrote a sketch with atachinterrupts, just for try as i am new to this.
After upload to arduino the computer lost comunication with the leonardo and any time i connect usb port it says it doesn t recognize Hardware.
I am almost sure that the problem is the sketch i wrote since i have two boards, and i tried to upload the same program to the other and it began to do the same.
I hope i didn t damaged the boards, i don t have a clue what is hapenning.
The sketch is:
int pin=13;
volatile int state = LOW;
//unsigned long time;
It was the sketch, i connected pin 3 to 5 volt and could be able to upload anoyher sketch.
Lesson learned, very careful with atachinterrupt
But now i have another doubt:
I declared interrupt 0 on the sketch and in hardware details of leonardo this interrupt correspond to pin 2, i tried first with pin 2 connected to 5 volt and the problem persisted.
So am i missing something or interrupt pins are diferent in leonardo then in other boards?