
public class EV3TouchSensor extends BaseSensor
leJOS conventions for
SampleProviders| Modifier and Type | Class and Description |
|---|---|
private class |
EV3TouchSensor.TouchMode |
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
LEGO_EV3_TOUCH |
currentMode, currentModeS, modes, SWITCH_DELAYADDRESS, DEVICE, DEVICE_ROOT_PATH, LEGO_PORT, LEGO_SENSOR, MODE, PATH_DEVICEBATTERY, BATTERY_BRICKPI, BATTERY_EV3, BATTERY_PISTORMS, LEGO_UART_SENSOR, SENSOR_MODE, SENSOR_MODESBRICKPI, EV3BRICK, PISTORMS| Constructor and Description |
|---|
EV3TouchSensor(java.lang.String portName) |
| Modifier and Type | Method and Description |
|---|---|
SensorMode |
getTouchMode()
Lego EV3 Touch sensors, Touch mode
Detects when its front button is pressed Size and content of the sample The sample contains one element, a value of 0 indicates that the button is not presse, a value of 1 indicates the button is pressed. |
private void |
init() |
fetchSample, getAvailableModes, getCurrentMode, getMode, getMode, getModeCount, getName, sampleSize, setCurrentMode, setCurrentMode, setModes, switchMode, switchModedetect, getIntegerAttribute, getPlatform, getStringAttribute, setIntegerAttribute, setStringAttributeclose, releaseOnCloseprivate static final java.lang.String LEGO_EV3_TOUCH
private void init()
public SensorMode getTouchMode()
Size and content of the sample
The sample contains one element, a value of 0 indicates that the button is not presse, a value of 1 indicates the button is pressed.
leJOS conventions for
SampleProviders