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.
Simple buzzer.
public class Buzzer : IDisposable
[System.Device.Model.Interface("Simple buzzer")]
public class Buzzer : IDisposable
type Buzzer = class
interface IDisposable
[<System.Device.Model.Interface("Simple buzzer")>]
type Buzzer = class
interface IDisposable
Public Class Buzzer
Implements IDisposable
- Inheritance
-
Buzzer
- Attributes
- Implements
Constructors
Buzzer(Int32) |
Constructs Buzzer instance |
Buzzer(Int32, Int32) |
Create Buzzer class instance with output on specified pin with specified channel. |
Buzzer(PwmChannel) |
Create Buzzer class instance with output on specified pin with specified channel using passed PWM controller. |
Methods
Dispose() |
Dispose Buzzer. |
PlayTone(Double, Int32) |
Play tone of specific frequency for specified duration. |
StartPlaying(Double) |
Set new or overwrite previously set frequency and start playing the sound. |
StopPlaying() |
Stop playing tone. |
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