The ATmega328P has two external interrupt inputs on pins 2 and 3. You assign a function to them with the attachInterrupt() function.
The ATmega328P has two external interrupt inputs on pins 2 and 3. You assign a function to them with the attachInterrupt() function.