note to self: use_pwm_in is bool