PWM Constructor (Cpu.PWMChannel, Double, Double, Boolean)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the PWM class with the specified channel, frequency, duty cycle, and value that indicates whether the output is inverted.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware.PWM (in Microsoft.SPOT.Hardware.PWM.dll)
Syntax
'Declaration
Public Sub New ( _
channel As Cpu.PWMChannel, _
frequency_Hz As Double, _
dutyCycle As Double, _
invert As Boolean _
)
public PWM(
Cpu.PWMChannel channel,
double frequency_Hz,
double dutyCycle,
bool invert
)
public:
PWM(
Cpu::PWMChannel channel,
double frequency_Hz,
double dutyCycle,
bool invert
)
new :
channel:Cpu.PWMChannel *
frequency_Hz:float *
dutyCycle:float *
invert:bool -> PWM
public function PWM(
channel : Cpu..::..PWMChannel,
frequency_Hz : double,
dutyCycle : double,
invert : boolean
)
Parameters
- channel
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .PWMChannel
The channel for the PWM port.
- frequency_Hz
Type: System. . :: . .Double
The frequency of the pulse.
- dutyCycle
Type: System. . :: . .Double
The duty cycle of the pulse as a fraction of unity.
- invert
Type: System. . :: . .Boolean
A value that indicates whether the output is inverted.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.