PwmChannel.Create(Int32, Int32, Int32, Double) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立目前平臺上執行 之 的新實例 PwmChannel 。 (Windows 10 IoT 或 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
參數
- chip
- Int32
PWM 晶片編號。
- channel
- Int32
PWM 通道號碼。
- frequency
- Int32
以 hertz 為單位的頻率。
- dutyCyclePercentage
- Double
工作週期百分比表示為介於 0.0 到 1.0 之間的值。
傳回
Windows 10 IoT 上執行的 PWM 通道。