Buzzer Class

Definition

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