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