LedPwm Class
Definition
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 control led thru PWM
public class LedPwm : Iot.Device.GoPiGo3.Sensors.Buzzer
type LedPwm = class
inherit Buzzer
Public Class LedPwm
Inherits Buzzer
- Inheritance
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for