Méthode | Description | |
---|---|---|
EV3TouchSensor ( BrickPortSensor port ) : System |
Initialise an EV3 Touch sensor
|
|
EV3TouchSensor ( BrickPortSensor port, int timeout ) : System |
Initialize an EV3 Touch Sensor
|
|
GetSensorName ( ) : string | ||
IsPressed ( ) : bool |
Determines whether the touch sensor is pressed.
|
|
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 EV3TouchSensor ( BrickPortSensor port ) : System | ||
port | BrickPortSensor | Sensor port |
Résultat | System |
public EV3TouchSensor ( 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 |