PWM.setPercentDutyCycle

Name
PWM.setPercentDutyCycle - Set PWM duty cycle in percent (0-100)

Description

 * void PWM.setPercentDutyCycle ( u8 pin, u8 percent )


 * Set a percentage duty cycle, allowing max 100 PWM steps.

This chart uses DutyCycle(0-255) but Percentage(0-100) uses the same concept.

Syntax

 * PWM.setPercentDutyCycle(pin, percent)
 * PWM.setPercentDutyCycle(u8 pin, u8 percent)


 * pin
 * CCP pin - 5 for CCP1 or 6 for CCP2
 * PIC32 OlimexMicro - IDE pin 10, 11, 12


 * percent
 * 0 to 100


 * Returns/Output
 * None