Timers

SetPWMDuty()

Description

writes/changes PWM wave duty cycle to the pin specified in SetPWMOutputPin . The pin generating the wave of the specified duty cycle will not stop until the next call to SetPWMDuty().Duty cycle is the ratio between the the ON time and the total time the wave takes to make a cycle wich is 1/frequency specified using setPWMFrequency

Syntax

Timers_class.SetPWMDuty(value)

Parameters

value changing from 0 to 255 (uint8_t) (8 bit unsigned integer)

Returns

none

  

Share |