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 |