NXTTouchSensor Constructors
Definition
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.
Overloads
NXTTouchSensor(Brick, SensorPort) |
Initialize a new NXT Touch sensor |
NXTTouchSensor(Brick, SensorPort, Int32) |
Initialize a new NXT Touch sensor |
NXTTouchSensor(Brick, SensorPort)
Initialize a new NXT Touch sensor
public NXTTouchSensor (Iot.Device.BrickPi3.Brick brick, Iot.Device.BrickPi3.Models.SensorPort port);
new Iot.Device.BrickPi3.Sensors.NXTTouchSensor : Iot.Device.BrickPi3.Brick * Iot.Device.BrickPi3.Models.SensorPort -> Iot.Device.BrickPi3.Sensors.NXTTouchSensor
Public Sub New (brick As Brick, port As SensorPort)
Parameters
- brick
- Brick
Interface to main Brick component
- port
- SensorPort
Sensor port
Applies to
NXTTouchSensor(Brick, SensorPort, Int32)
Initialize a new NXT Touch sensor
public NXTTouchSensor (Iot.Device.BrickPi3.Brick brick, Iot.Device.BrickPi3.Models.SensorPort port, int timeout);
new Iot.Device.BrickPi3.Sensors.NXTTouchSensor : Iot.Device.BrickPi3.Brick * Iot.Device.BrickPi3.Models.SensorPort * int -> Iot.Device.BrickPi3.Sensors.NXTTouchSensor
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for