Compartir a través de


SoftwarePwmChannel Constructores

Definición

Sobrecargas

SoftwarePwmChannel(Int32, Int32, Double, Boolean, GpioController)
SoftwarePwmChannel(Int32, Int32, Double, Boolean, GpioController, Boolean)

Inicializa una nueva instancia de la clase SoftwarePwmChannel.

SoftwarePwmChannel(Int32, Int32, Double, Boolean, GpioController)

public SoftwarePwmChannel (int pinNumber, int frequency = 400, double dutyCycle = 0.5, bool usePrecisionTimer = false, System.Device.Gpio.GpioController controller = default);
new System.Device.Pwm.Drivers.SoftwarePwmChannel : int * int * double * bool * System.Device.Gpio.GpioController -> System.Device.Pwm.Drivers.SoftwarePwmChannel
Public Sub New (pinNumber As Integer, Optional frequency As Integer = 400, Optional dutyCycle As Double = 0.5, Optional usePrecisionTimer As Boolean = false, Optional controller As GpioController = Nothing)

Parámetros

pinNumber
Int32
frequency
Int32
dutyCycle
Double
usePrecisionTimer
Boolean
controller
GpioController

Se aplica a

SoftwarePwmChannel(Int32, Int32, Double, Boolean, GpioController, Boolean)

Inicializa una nueva instancia de la clase SoftwarePwmChannel.

public SoftwarePwmChannel (int pinNumber, int frequency = 400, double dutyCycle = 0.5, bool usePrecisionTimer = false, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new System.Device.Pwm.Drivers.SoftwarePwmChannel : int * int * double * bool * System.Device.Gpio.GpioController * bool -> System.Device.Pwm.Drivers.SoftwarePwmChannel
Public Sub New (pinNumber As Integer, Optional frequency As Integer = 400, Optional dutyCycle As Double = 0.5, Optional usePrecisionTimer As Boolean = false, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parámetros

pinNumber
Int32

Número de patilla GPIO que se va a usar

frequency
Int32

Frecuencia en hercios. El valor predeterminado es 400

dutyCycle
Double

Porcentaje del ciclo de trabajo representado como un valor entre 0,0 y 1,0

usePrecisionTimer
Boolean

Determina si se debe usar un temporizador de alta precisión.

controller
GpioController

GpioController al que pinNumber pertenece. null el valor predeterminado es gpioController.

shouldDispose
Boolean

true para eliminar automáticamente el controlador cuando se elimina esta clase; de lo contrario, false . Este parámetro se ignora si controller es null.

Se aplica a