Added setPrecisePwmDuty for defining PWM duty cycle directly