EV3InfraredSensor 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.
EV3InfraredSensor(Brick, SensorPort) |
Initialize an EV3 IR Sensor |
EV3InfraredSensor(Brick, SensorPort, IRMode) |
Initializes an EV3 IS Sensor |
EV3InfraredSensor(Brick, SensorPort, IRMode, Int32) |
Initialize an EV3 IR Sensor |
Initialize an EV3 IR Sensor
C#
public EV3InfraredSensor (Iot.Device.BrickPi3.Brick brick, Iot.Device.BrickPi3.Models.SensorPort port);
new Iot.Device.BrickPi3.Sensors.EV3InfraredSensor : Iot.Device.BrickPi3.Brick * Iot.Device.BrickPi3.Models.SensorPort -> Iot.Device.BrickPi3.Sensors.EV3InfraredSensor
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 |
Initializes an EV3 IS Sensor
C#
public EV3InfraredSensor (Iot.Device.BrickPi3.Brick brick, Iot.Device.BrickPi3.Models.SensorPort port, Iot.Device.BrickPi3.Sensors.IRMode mode);
new Iot.Device.BrickPi3.Sensors.EV3InfraredSensor : Iot.Device.BrickPi3.Brick * Iot.Device.BrickPi3.Models.SensorPort * Iot.Device.BrickPi3.Sensors.IRMode -> Iot.Device.BrickPi3.Sensors.EV3InfraredSensor
Public Sub New (brick As Brick, port As SensorPort, mode As IRMode)
Parameters
- brick
- Brick
Interface to main Brick component
- port
- SensorPort
Sensor port
- mode
- IRMode
IR mode
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 an EV3 IR Sensor
C#
public EV3InfraredSensor (Iot.Device.BrickPi3.Brick brick, Iot.Device.BrickPi3.Models.SensorPort port, Iot.Device.BrickPi3.Sensors.IRMode mode, int timeout);
new Iot.Device.BrickPi3.Sensors.EV3InfraredSensor : Iot.Device.BrickPi3.Brick * Iot.Device.BrickPi3.Models.SensorPort * Iot.Device.BrickPi3.Sensors.IRMode * int -> Iot.Device.BrickPi3.Sensors.EV3InfraredSensor
Public Sub New (brick As Brick, port As SensorPort, mode As IRMode, timeout As Integer)
Parameters
- brick
- Brick
Interface to main Brick component
- port
- SensorPort
Sensor port
- mode
- IRMode
IR mode
- 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 |