Share via


IPwmControllerProvider.SetPulseParameters(Int32, Double, Boolean) Method

Definition

Sets the PWM parameters for pin, duty cycle, and polarity.

public:
 void SetPulseParameters(int pin, double dutyCycle, bool invertPolarity);
void SetPulseParameters(int const& pin, double const& dutyCycle, bool const& invertPolarity);
public void SetPulseParameters(int pin, double dutyCycle, bool invertPolarity);
function setPulseParameters(pin, dutyCycle, invertPolarity)
Public Sub SetPulseParameters (pin As Integer, dutyCycle As Double, invertPolarity As Boolean)

Parameters

pin
Int32

int

Indicates which pin these values apply to.

dutyCycle
Double

double

The duty cycle percentage, with value between 0 and 100 inclusive.

invertPolarity
Boolean

bool

True if polarity of pin should be inverted, otherwise false.

Applies to