Skip to main content

pamoja_pwm_duty

Function pamoja_pwm_duty 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_pwm_duty(off: u16) -> PamojaPwm
Expand description

Builds a PWM setting with no phase delay: on at count 0, off at off.

The datasheet rules out the same count in on and off, so 0 is the full-off setting and 4096 or more the full-on one.

ยงReturns

The four register bytes.