[Solved] Interrupts problem

Hello,
I am trying to make an interrupt when my pin 3 is LOW.

When I upload this sketch to the Yun, then the board becomes unrecognizable by USB and the serial port COMx is not working. I have to upload via wifi an other sketch so the serial port is up again .

int Int= 0;  // Interrupt 0 is on pin 3 so GND to pin3 is time++
int times = 0; 
void setup()
{                
	Serial.begin(9600);
	//Attach the interrupt to the input pin and monitor for LOW 
	attachInterrupt(Int, react, LOW);
}
 
void loop()                     
{

}
 
void react()
{
	Serial.print("Interrupt done ");
	Serial.print(times);
	Serial.println();
}

You have Serial.print in the interrupt service routine. That does not work. Set a flag in the ISR and do the printing in loop() if the flag indicates an interrupt occurred, then reset the flag after printing to prepare for the next interrupt..

Well thank you,

this forum is very helpful