make types signed in percent_to_pwm