Name
pwm_set_duty —
sets the PWM signal duty cycle
Synopsis
#include <pwm.h>
void pwm_set_duty ( | channels, | |
| duty_cycle) ; | |
char channels
;
char duty_cycle
;
Arguments
channels
bitmask of channels
duty_cycle
the duty in percentage (0 - 100)
Description
Sets the PWM signal duty cycle, for the channels specified by
channels
. On the ZKit-51, ZKit-51-v664, ZKit-51-RD2 a duty cycle
of 0 is not allowed.