replaced delay() with delayMicroseconds(), otherwise timer LPM would not work