Attaching Interrupt with timeout

the interrupt function should only fire once on activation of the interrupt pin. The rest of your code should continue running in the loop

void loop() {
      all your other code
}

take a look at this code, it has a lot of interrupts and other code intermingling

1 Like