Class GpioPinSoftPwmService
Provides a software-based PWM service on the associated pin.
Inherited Members
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. |