simplified pwm 0x0-0xf looping count
misc adjustments
check animation time in interrupt handler; set flag