PWM Constructor (Cpu.PWMChannel, UInt32, UInt32, PWM.ScaleFactor, 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, period, duration, scale 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, _
period As UInteger, _
duration As UInteger, _
scale As PWM.ScaleFactor, _
invert As Boolean _
)
public PWM(
Cpu.PWMChannel channel,
uint period,
uint duration,
PWM.ScaleFactor scale,
bool invert
)
public:
PWM(
Cpu::PWMChannel channel,
unsigned int period,
unsigned int duration,
PWM::ScaleFactor scale,
bool invert
)
new :
channel:Cpu.PWMChannel *
period:uint32 *
duration:uint32 *
scale:PWM.ScaleFactor *
invert:bool -> PWM
public function PWM(
channel : Cpu..::..PWMChannel,
period : uint,
duration : uint,
scale : PWM..::..ScaleFactor,
invert : boolean
)
Parameters
- channel
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .PWMChannel
The channel for the PWM port.
- period
Type: System. . :: . .UInt32
The period of the pulse in microseconds.
- duration
Type: System. . :: . .UInt32
The duration of the pulse in microseconds. This value should be a fraction of the period parameter.
- 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.