Compartir a través de


Board.CreatePwmChannel Método

Definición

Sobrecargas

CreatePwmChannel(Int32, Int32, Int32, Double)

Crea un canal PWM para la asignación de patillas predeterminada.

CreatePwmChannel(Int32, Int32, Int32, Double, Int32, PinNumberingScheme)

Crea un canal PWM

CreatePwmChannel(Int32, Int32, Int32, Double)

Crea un canal PWM para la asignación de patillas predeterminada.

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

Parámetros

chip
Int32

Número de chip. Normalmente 0

channel
Int32

Canal en el chip dado

frequency
Int32

Frecuencia inicial

dutyCyclePercentage
Double

Ciclo de trabajo inicial

Devoluciones

Una instancia de canal pwm

Se aplica a

CreatePwmChannel(Int32, Int32, Int32, Double, Int32, PinNumberingScheme)

Crea un canal PWM

public System.Device.Pwm.PwmChannel CreatePwmChannel (int chip, int channel, int frequency, double dutyCyclePercentage, int pin, System.Device.Gpio.PinNumberingScheme pinNumberingScheme);
member this.CreatePwmChannel : int * int * int * double * int * System.Device.Gpio.PinNumberingScheme -> System.Device.Pwm.PwmChannel
Public Function CreatePwmChannel (chip As Integer, channel As Integer, frequency As Integer, dutyCyclePercentage As Double, pin As Integer, pinNumberingScheme As PinNumberingScheme) As PwmChannel

Parámetros

chip
Int32

Número de chip. Normalmente 0

channel
Int32

Canal en el chip dado

frequency
Int32

Frecuencia inicial

dutyCyclePercentage
Double

Ciclo de trabajo inicial

pin
Int32

Número de patilla del canal pwm. Se usa si no está conectado de forma fija (es decir, en raspi, es posible usar pines diferentes para el mismo canal PWM)

pinNumberingScheme
PinNumberingScheme

Esquema de numeración de patillas para el pin

Devoluciones

Una instancia de canal pwm

Se aplica a