pin 2 can be configured for a rising edge, why then use a change interrupt and sample the interrupt pin instead? That is a convoluted way to do it.
pin 2 can be configured for a rising edge, why then use a change interrupt and sample the interrupt pin instead? That is a convoluted way to do it.