What is the equivalent of doing this if I was to set the registers manually?
attachInterrupt(digitalPinToInterrupt(2), isrPin2, RISING);
is it
// attachInterrupt(digitalPinToInterrupt(2), isrPin2, RISING); is the same as this?
EICRA = 0;
EICRA = bit (ISC01) | bit(ISC00); // RISING
EIFR = bit (INTF0);
EIMSK = bit (INT0);
And what would the dettachInterrupt be?