SoftwarePwmChannel Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
SoftwarePwmChannel(Int32, Int32, Double, Boolean, GpioController) | |
SoftwarePwmChannel(Int32, Int32, Double, Boolean, GpioController, Boolean) |
Inicializa uma nova instância da classe 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
Aplica-se a
SoftwarePwmChannel(Int32, Int32, Double, Boolean, GpioController, Boolean)
Inicializa uma nova instância da classe 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
O número de pino do GPIO a ser usado
- frequency
- Int32
A frequência em hertz. O padrão é 400
- dutyCycle
- Double
O percentual do ciclo de direitos representado como um valor entre 0,0 e 1,0
- usePrecisionTimer
- Boolean
Determina se um temporizador de alta precisão deve ser usado.
- controller
- GpioController
O GpioController ao qual pinNumber
pertence.
null
usa como padrão a placa GpioController
- shouldDispose
- Boolean
true
para descartar automaticamente o controlador quando essa classe for descartada, caso contrário, false
. Esse parâmetro será ignorado se controller
for null
.