Share via


PwmPin Class

Definition

Represents a single PWM pin on the system.

public ref class PwmPin sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PwmPin final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PwmPin : System.IDisposable
Public NotInheritable Class PwmPin
Implements IDisposable
Inheritance
Object Platform::Object IInspectable PwmPin
Attributes
Implements

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v1.0)

Properties

Controller

Gets the PWM controller in use by this pin.

IsStarted

Gets the started state of the pin.

Polarity

Gets or sets the polarity of the pin.

Methods

Close()

Closes current connection to the pin, and makes pin available to be opened by others.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetActiveDutyCyclePercentage()

Retrieves the duty cycle percentage for this pin.

SetActiveDutyCyclePercentage(Double)

Sets the duty cycle percentage for this pin.

Start()

Starts the PWM on this pin.

Stop()

Stops the PWM on this pin.

Applies to

See also