Characteristic Locus
Inheritance System.Object ObservableBase<Voltage> SamplingSensorBase<Voltage> AnalogSamplingBase > SoundSensor
Implements ISamplingSensor<Voltage>
Inherited Members AnalogSamplingBase.Voltage AnalogSamplingBase.StartUpdating(Nullable<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<>) SamplingSensorBase<Voltage>.Read() ObservableBase<Voltage>.observers ObservableBase<Voltage>.NotifyObservers(IChangeResult<>) Meadow.Foundation.ObservableBase<Voltage>.Subscribe(IObserver<>) Meadow.Foundation.ObservableBase<Voltage>.CreateObserver(Action<>, System.Nullable<Predicate<IChangeResult<UNIT>>>)
Namespace Meadow.Foundation.Grove.Sensors.Sound
Assembly SoundSensor.dll

Syntax

public class SoundSensor : AnalogSamplingBase, ISamplingSensor<Voltage>

Constructors

SoundSensor(IAnalogInputPort)

Creates a new SoundSensor driver

Declaration
public SoundSensor(IAnalogInputPort port)

Parameters

Type Name Description
IAnalogInputPort port

SoundSensor(IPin, Int32, Nullable<TimeSpan>, Nullable<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.

System.Int32 sampleCount
System.Nullable<TimeSpan> sampleInterval
System.Nullable<Voltage> voltage