void pin2_isr() { detachInterrupt(0); pin2_interrupt_flag = 1; }