Buzzer 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.
Buzzer is a generic buzzer class
public class Buzzer : Iot.Device.GrovePiDevice.Sensors.PwmOutput
type Buzzer = class
inherit PwmOutput
Public Class Buzzer
Inherits PwmOutput
- Inheritance
Constructors
Buzzer(GrovePi, GrovePort) |
Buzzer 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 Buzzer |
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 in a formated string (Inherited from PwmOutput) |
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