public interface BasicSensorPort extends SensorConstants
BLACK, BLANK_INDEX, BLUE, BLUE_INDEX, BROWN, GREEN, GREEN_INDEX, MAX_TYPE, MIN_TYPE, MODE_RAW, NXT_ADC_RES, RED, RED_INDEX, TYPE_ANGLE, TYPE_COLORBLUE, TYPE_COLORFULL, TYPE_COLORGREEN, TYPE_COLORNONE, TYPE_COLORRED, TYPE_CUSTOM, TYPE_HIGHSPEED, TYPE_HIGHSPEED_9V, TYPE_HISPEED, TYPE_LIGHT_ACTIVE, TYPE_LIGHT_INACTIVE, TYPE_LOWSPEED, TYPE_LOWSPEED_9V, TYPE_NO_SENSOR, TYPE_REFLECTION, TYPE_SOUND_DB, TYPE_SOUND_DBA, TYPE_SWITCH, TYPE_TEMPERATURE, WHITE, YELLOW
Modifier and Type | Method and Description |
---|---|
int |
getMode()
Get the current operating mode of the sensor
|
int |
getType()
Get the current type setting.
|
boolean |
setMode(int mode)
Set the current operating mode for the sensor attached to the port.
|
boolean |
setType(int type)
Set the operating type for the attached sensor.
|
boolean |
setTypeAndMode(int type,
int mode)
Deprecated.
|
int getMode()
int getType()
boolean setMode(int mode)
mode
- the new modeboolean setType(int type)
type
- @Deprecated boolean setTypeAndMode(int type, int mode)