public class RCXSensorMultiplexer extends I2CSensor
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RCXSMUX_ADDRESS |
address, DEFAULT_I2C_ADDRESS, port, REG_PRODUCT_ID, REG_VENDOR_ID, REG_VERSION, retryCount
currentMode, modes
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
Constructor and Description |
---|
RCXSensorMultiplexer(I2CPort port) |
RCXSensorMultiplexer(I2CPort port,
int address) |
RCXSensorMultiplexer(Port port) |
RCXSensorMultiplexer(Port port,
int address) |
Modifier and Type | Method and Description |
---|---|
void |
allChannelsOff()
Turns off all channels
|
void |
setChannelFour()
Selects channel four
|
void |
setChannelOne()
Selects channel one
|
void |
setChannelThree()
Selects channel three
|
void |
setChannelTwo()
Selects channel two
|
fetchString, getAddress, getData, getData, getPort, getProductID, getRetryCount, getVendorID, getVersion, sendData, sendData, sendData, setAddress, setRetryCount
fetchSample, getAvailableModes, getCurrentMode, getMode, getMode, getModeCount, getName, sampleSize, setCurrentMode, setCurrentMode, setModes
close, releaseOnClose
public static final int DEFAULT_RCXSMUX_ADDRESS
public RCXSensorMultiplexer(I2CPort port)
port
- NXT Sensor portpublic RCXSensorMultiplexer(I2CPort port, int address)
port
- NXT Sensor portaddress
- I2C addresspublic RCXSensorMultiplexer(Port port)
port
- NXT Sensor portpublic RCXSensorMultiplexer(Port port, int address)
port
- NXT Sensor portaddress
- I2C addresspublic void setChannelOne()
public void setChannelTwo()
public void setChannelThree()
public void setChannelFour()
public void allChannelsOff()