Skip to main content

pamoja_pwm_servo

Function pamoja_pwm_servo 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_pwm_servo( pulse_micros: u32, update_rate_hz: u32, ) -> PamojaPwm
Expand description

Builds the setting that drives a hobby servo to a given pulse width.

Typical travel is about 1000 to 2000 microseconds at a 50 Hz update rate.

ยงReturns

The four register bytes for that pulse width.