Méthode | Description | |
---|---|---|
GetSensorName ( ) : string | ||
IsPressed ( ) : bool |
Determines whether the touch sensor is pressed.
|
|
NXTTouchSensor ( BrickPortSensor port ) : System |
Initialize a new NXT Touch sensor
|
|
NXTTouchSensor ( BrickPortSensor port, int timeout ) : System |
Initialize a new NXT Touch sensor
|
|
NumberOfModes ( ) : int | ||
ReadAsString ( ) : string |
Reads the sensor value as a string.
|
|
ReadRaw ( ) : int |
Reads the raw sensor value
|
|
SelectNextMode ( ) : void | ||
SelectPreviousMode ( ) : void | ||
SelectedMode ( ) : string | ||
UpdateSensor ( object state ) : void |
Update the sensor and this will raised an event on the interface
|
Méthode | Description | |
---|---|---|
OnPropertyChanged ( string name ) : void | ||
StopTimerInternal ( ) : void |
public NXTTouchSensor ( BrickPortSensor port ) : System | ||
port | BrickPortSensor | Sensor port |
Résultat | System |
public NXTTouchSensor ( BrickPortSensor port, int timeout ) : System | ||
port | BrickPortSensor | Sensor port |
timeout | int | Period in millisecond to check sensor value changes |
Résultat | System |
public UpdateSensor ( object state ) : void | ||
state | object | |
Résultat | void |