Trying to get rid of magic PWM numbers