Edit

Share via


PwmChannel.Create(Int32, Int32, Int32, Double) Method

Definition

Creates a new instance of the PwmChannel running on the current platform. (Windows 10 IoT or Unix/Raspbian)

public static System.Device.Pwm.PwmChannel Create (int chip, int channel, int frequency = 400, double dutyCyclePercentage = 0.5);
static member Create : int * int * int * double -> System.Device.Pwm.PwmChannel
Public Shared Function Create (chip As Integer, channel As Integer, Optional frequency As Integer = 400, Optional dutyCyclePercentage As Double = 0.5) As PwmChannel

Parameters

chip
Int32

The PWM chip number.

channel
Int32

The PWM channel number.

frequency
Int32

The frequency in hertz.

dutyCyclePercentage
Double

The duty cycle percentage represented as a value between 0.0 and 1.0.

Returns

A PWM channel running on Windows 10 IoT.

Applies to