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();
}