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