PwmOutput Class

Definition

PwmOutput class to support hardware PWM on PWM hardware enabled pins

public class PwmOutput
type PwmOutput = class
Public Class PwmOutput
Inheritance
PwmOutput
Derived

Constructors

PwmOutput(GrovePi, GrovePort)

PwmOutput constructor

Properties

Duty

Get/set the PWM duty to use to generate the sound from 0 to 100

SensorName

Get the name PWM Output

SupportedPorts

Only Digital PWM are supported

Value

For GrovePi, Value is same as Duty

ValueAsPercent

Get the duty cycle as a persentage

Methods

Start()

Starts the PWM duty

Stop()

Stop the PWM duty

ToString()

Returns the duty in a formated string

Applies to