Function bl602_sdk::pwm::set_duty [−][src]
pub fn set_duty(id: u8, duty: f32) -> BlResult<i32>
Expand description
Set the Duty Cycle of a PWM Channel. See bl_pwm_set_duty
in “PWM Frequency and Duty Cycle” https://lupyuen.github.io/articles/led#pwm-frequency-and-duty-cycle