forked from dotnet/iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuzzer.cs
28 lines (25 loc) · 823 Bytes
/
Buzzer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Iot.Device.GrovePiDevice.Models;
namespace Iot.Device.GrovePiDevice.Sensors
{
/// <summary>
/// Buzzer is a generic buzzer class
/// </summary>
public class Buzzer : PwmOutput
{
/// <summary>
/// Buzzer constructor
/// </summary>
/// <param name="grovePi">The GrovePi class</param>
/// <param name="port">The grove Port, need to be in the list of SupportedPorts</param>
public Buzzer(GrovePi grovePi, GrovePort port)
: base(grovePi, port)
{
}
/// <summary>
/// Get the name Buzzer
/// </summary>
public new string SensorName => "Buzzer";
}
}