Characteristic Locus
Inheritance object ObservableBase<Voltage> SamplingSensorBase<Voltage> AnalogSamplingBase > SoundSensor
Implements IObservable<IChangeResult<Voltage>> ISamplingSensor<Voltage> ISensor<Voltage>
Inherited Members AnalogSamplingBase.Voltage AnalogSamplingBase.StartUpdating(TimeSpan?) AnalogSamplingBase.StopUpdating() AnalogSamplingBase.ReadSensor() SamplingSensorBase<Voltage>.samplingLock SamplingSensorBase<Voltage>.Updated SamplingSensorBase<Voltage>.SamplingTokenSource SamplingSensorBase<Voltage>.Conditions SamplingSensorBase<Voltage>.IsSampling SamplingSensorBase<Voltage>.UpdateInterval SamplingSensorBase<Voltage>.RaiseEventsAndNotify(IChangeResult<Voltage>) SamplingSensorBase<Voltage>.Read() ObservableBase<Voltage>.observers ObservableBase<Voltage>.NotifyObservers(IChangeResult<Voltage>) ObservableBase<Voltage>.Subscribe(IObserver<IChangeResult<Voltage>>) ObservableBase<Voltage>.CreateObserver(Action<IChangeResult<Voltage>>, Predicate<IChangeResult<Voltage>>) object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.Grove.Sensors.Sound
Assembly SoundSensor.dll

Syntax

public class SoundSensor : AnalogSamplingBase, IObservable<IChangeResult<Voltage>>, ISamplingSensor<Voltage>, ISensor<Voltage>

Constructors

SoundSensor(IAnalogInputPort)

Creates a new SoundSensor driver

Declaration
public SoundSensor(IAnalogInputPort port)

Parameters

Type Name Description
IAnalogInputPort port

SoundSensor(IPin, int, TimeSpan?, Voltage?)

Creates a new SoundSensor driver

Declaration
public SoundSensor(IPin pin, int sampleCount = 5, TimeSpan? sampleInterval = null, Voltage? voltage = null)

Parameters

Type Name Description
IPin pin

AnalogChannel connected to the sensor.

int sampleCount
TimeSpan? sampleInterval
Voltage? voltage