arduino attachinterrupt function
Step 2: Arduino AttachInterrupt() Function. attachInterrupt() function is used for creating external interrupt.SyntaxattachInterrupt(interrupt, ISR, mode)attachInterrupt(pin, ISR, mode) (Arduino Due only)Parameters interrupt:the number of the interrupt (int)pin:the pin number(Arduino Due only)ISR:the ISR to call ...