LedPwm Class

Definition

LedPwm class to control led thru PWM

public class LedPwm : Iot.Device.GoPiGo3.Sensors.Buzzer
type LedPwm = class
    inherit Buzzer
Public Class LedPwm
Inherits Buzzer
Inheritance
LedPwm

Constructors

LedPwm(GoPiGo, GrovePort)

Constructor for the LedPwm class

LedPwm(GoPiGo, GrovePort, Byte)

Constructor for the LedPwm class

Properties

Duty

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

(Inherited from Buzzer)
Port

Grove port

(Inherited from Buzzer)
SensorName

Get the sensor name "Led PWM"

SupportedPorts

List the supported Grove ports for the sensor

(Inherited from Buzzer)
Value

Get/set the frequency in Hz

(Inherited from Buzzer)

Methods

Start()

Starts the buzzer

(Inherited from Buzzer)
Stop()

Stop the buzzer

(Inherited from Buzzer)
ToString()

Get the frequency in Hertz

(Inherited from Buzzer)

Applies to