public class HiTechnicNxtLightSensor
extends LegacyModulePortDeviceImpl
Modifier and Type | Field and Description |
---|---|
protected static double |
apiLevelMax |
protected static double |
apiLevelMin |
static byte |
LED_DIGITAL_LINE_NUMBER |
static double |
MAX_LIGHT_FRACTION |
static double |
MIN_LIGHT_FRACTION |
Constructor and Description |
---|
HiTechnicNxtLightSensor(LegacyModule legacyModule,
int physicalPort) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
enableLed(boolean enable) |
java.lang.String |
getConnectionInfo() |
java.lang.String |
getDeviceName() |
double |
getLightDetected()
Read the scaled light level from an NXT Light sensor and return a scaled value
NOTE: Returned values INCREASE as the light energy INCREASES Typical Scaled Light Levels: LED ON (reflective): Black = 0.1 White = 0.55 LED OFF (ambient): Dark = 0.0 Bright = 1.0 |
Manufacturer |
getManufacturer() |
double |
getRawLightDetected()
Read the raw light level from an NXT Light sensor
NOTE: Returned values INCREASE as the light energy INCREASES |
double |
getRawLightDetectedMax() |
int |
getVersion() |
protected void |
moduleNowArmedOrPretending() |
double |
readRawVoltage() |
void |
resetDeviceConfigurationForOpMode() |
java.lang.String |
status() |
java.lang.String |
toString() |
public static final byte LED_DIGITAL_LINE_NUMBER
public static final double MIN_LIGHT_FRACTION
public static final double MAX_LIGHT_FRACTION
protected static final double apiLevelMin
protected static final double apiLevelMax
public HiTechnicNxtLightSensor(LegacyModule legacyModule, int physicalPort)
protected void moduleNowArmedOrPretending()
public java.lang.String toString()
public double getLightDetected()
public double getRawLightDetected()
public double getRawLightDetectedMax()
public double readRawVoltage()
public void enableLed(boolean enable)
public java.lang.String status()
public Manufacturer getManufacturer()
public java.lang.String getDeviceName()
public java.lang.String getConnectionInfo()
public int getVersion()
public void resetDeviceConfigurationForOpMode()
public void close()