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

  • duration
    Type: System. . :: . .UInt32
    The duration of the pulse in microseconds. This value should be a fraction of the period parameter.

.NET Framework Security

See Also

Reference

PWM Class

PWM Overload

Microsoft.SPOT.Hardware Namespace