LedPwm Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
LedPwm class to add PWM on a Led
C#
public class LedPwm : Iot.Device.GrovePiDevice.Sensors.PwmOutput
type LedPwm = class
inherit PwmOutput
Public Class LedPwm
Inherits PwmOutput
- Inheritance
Led |
LedPwm constructor |
Duty |
Get/set the PWM duty to use to generate the sound from 0 to 100 (Inherited from PwmOutput) |
Sensor |
Get the name Led PWM |
Value |
For GrovePi, Value is same as Duty (Inherited from PwmOutput) |
Value |
Get the duty cycle as a persentage (Inherited from PwmOutput) |
Start() |
Starts the PWM duty (Inherited from PwmOutput) |
Stop() |
Stop the PWM duty (Inherited from PwmOutput) |
To |
Returns the duty cycle as percentage from 0 % to 100 % |
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |