NXTSoundSensor Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
NXTSoundSensor(Brick, SensorPort) |
Initialize a NXT Sound Sensor |
NXTSoundSensor(Brick, SensorPort, Int32) |
Initialize a NXT Sound Sensor |
Initialize a NXT Sound Sensor
C#
public NXTSoundSensor (Iot.Device.BrickPi3.Brick brick, Iot.Device.BrickPi3.Models.SensorPort port);
new Iot.Device.BrickPi3.Sensors.NXTSoundSensor : Iot.Device.BrickPi3.Brick * Iot.Device.BrickPi3.Models.SensorPort -> Iot.Device.BrickPi3.Sensors.NXTSoundSensor
Public Sub New (brick As Brick, port As SensorPort)
Parameters
- brick
- Brick
Interface to main Brick component
- port
- SensorPort
Sensor Port
Applies to
.NET IoT Libraries 2.2.0 and other versions
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |
Initialize a NXT Sound Sensor
C#
public NXTSoundSensor (Iot.Device.BrickPi3.Brick brick, Iot.Device.BrickPi3.Models.SensorPort port, int timeout);
new Iot.Device.BrickPi3.Sensors.NXTSoundSensor : Iot.Device.BrickPi3.Brick * Iot.Device.BrickPi3.Models.SensorPort * int -> Iot.Device.BrickPi3.Sensors.NXTSoundSensor
Public Sub New (brick As Brick, port As SensorPort, timeout As Integer)
Parameters
- brick
- Brick
Interface to main Brick component
- port
- SensorPort
Sensor port
- timeout
- Int32
Period in millisecond to check sensor value changes
Applies to
.NET IoT Libraries 2.2.0 and other versions
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |