Perhaps you could call your "ledPWM" routine more than once. That should keep the LEDs happy and take longer time.