Unosquare
    Show / Hide Table of Contents

    Class GpioPinSoftPwmService

    Provides a software-based PWM service on the associated pin.

    Inheritance
    Object
    GpioPinServiceBase
    GpioPinSoftPwmService
    Inherited Members
    GpioPinServiceBase.IsAvailable
    GpioPinServiceBase.Pin
    GpioPinServiceBase.ValidateAvailable()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unosquare.PiGpio.ManagedModel
    Syntax
    public class GpioPinSoftPwmService : GpioPinServiceBase

    Properties

    DutyCycle

    Gets or sets the duty cycle. Setting this property starts the PWM pulses. The default range is 255.

    Declaration
    public int DutyCycle { get; set; }
    Property Value
    Type Description
    Int32

    Frequency

    Gets or sets the frequency (in Hz) at which the PWM runs.

    Declaration
    public int Frequency { get; set; }
    Property Value
    Type Description
    Int32

    Range

    Gets or sets the range of the duty cycle.

    Declaration
    public int Range { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    ResolveAvailable()

    Resolves the availability of this service for the associated pin.

    Declaration
    protected override bool ResolveAvailable()
    Returns
    Type Description
    Boolean

    True when the service is deemed as available.

    Overrides
    GpioPinServiceBase.ResolveAvailable()

    See Also

    GpioPinServiceBase

    Comments

    Back to top Copyright © 2017-2019 Unosquare