forked from dotnet/iot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoundSensor.cs
28 lines (25 loc) · 874 Bytes
/
SoundSensor.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>
/// SoundSensor class to support basic Grove microphones
/// </summary>
public class SoundSensor : AnalogSensor
{
/// <summary>
/// SoundSensor constructor.
/// </summary>
/// <param name="grovePi">The GoPiGo3 class</param>
/// <param name="port">The grove Port, need to be in the list of SupportedPorts</param>
public SoundSensor(GrovePi grovePi, GrovePort port)
: base(grovePi, port)
{
}
/// <summary>
/// Get the name Sound Sensor
/// </summary>
public new string SensorName => "Sound Sensor";
}
}