LedPwm Class

Definition

LedPwm class to add PWM on a Led

public class LedPwm : Iot.Device.GrovePiDevice.Sensors.PwmOutput
type LedPwm = class
    inherit PwmOutput
Public Class LedPwm
Inherits PwmOutput
Inheritance
LedPwm

Constructors

LedPwm(GrovePi, GrovePort)

LedPwm constructor

Properties

Duty

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

(Inherited from PwmOutput)
SensorName

Get the name Led PWM

Value

For GrovePi, Value is same as Duty

(Inherited from PwmOutput)
ValueAsPercent

Get the duty cycle as a persentage

(Inherited from PwmOutput)

Methods

Start()

Starts the PWM duty

(Inherited from PwmOutput)
Stop()

Stop the PWM duty

(Inherited from PwmOutput)
ToString()

Returns the duty cycle as percentage from 0 % to 100 %

Applies to