pwm_config — change a PWM device configuration
int pwm_config (
)
pwm
PWM device
duty_ns
"on" time (in nanoseconds)
period_ns
duration (in nanoseconds) of one cycle
0 on success or a negative error code on failure.