Function bl602_sdk::pwm::init[][src]

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

Designate a GPIO Pin as a PWM Channel. See bl_pwm_init in “Initialise PWM” https://lupyuen.github.io/articles/led#initialise-pwm