Function bl602_sdk::pwm::set_freq[][src]

pub fn set_freq(id: u8, freq: u32) -> BlResult<i32>
Expand description

Set the Frequency of a PWM Channel. See bl_pwm_set_freq in “PWM Frequency and Duty Cycle” https://lupyuen.github.io/articles/led#pwm-frequency-and-duty-cycle