public interface LightSensor extends HardwareDevice
HardwareDevice.Manufacturer
Modifier and Type | Method and Description |
---|---|
void |
enableLed(boolean enable)
Enable the LED light
|
double |
getLightDetected()
Get the amount of light detected by the sensor, scaled and cliped to a range
which is a pragmatically useful sensitivity.
|
double |
getRawLightDetected()
Returns a signal whose strength is proportional to the intensity of the light measured.
|
double |
getRawLightDetectedMax()
Returns the maximum value that can be returned by
getRawLightDetected() . |
java.lang.String |
status()
Status of this sensor, in string form
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
double getLightDetected()
double getRawLightDetected()
double getRawLightDetectedMax()
getRawLightDetected()
.getRawLightDetected()
void enableLed(boolean enable)
enable
- true to enable; false to disablejava.lang.String status()