public interface AnalogPort extends IOPort, BasicSensorPort
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 |
---|---|
void |
getFloats(float[] vals,
int offset,
int length)
Return a series of results obtained from the sensor.
|
float |
getPin1()
return the voltage present on pin 1 of the sensor port
|
float |
getPin6()
return the voltage present on pin 6 of the sensor port
|
close, getName, setPinMode
getMode, getType, setMode, setType, setTypeAndMode
float getPin6()
float getPin1()
void getFloats(float[] vals, int offset, int length)
vals
- Place to store the valuesoffset
- Offset into the above array to start storinglength
- number of values to read