Edit

Share via


Pca9685.SetDutyCycle(Int32, Double) Method

Definition

Sets duty cycle on specified channel.

public void SetDutyCycle (int channel, double dutyCycle);
member this.SetDutyCycle : int * double -> unit
Public Sub SetDutyCycle (channel As Integer, dutyCycle As Double)

Parameters

channel
Int32

Selected channel

dutyCycle
Double

Value to set duty cycle to

Remarks

Throws InvalidOperationException if specified channel is created with CreatePwmChannel(Int32)

Applies to