public interface LightSensor extends HardwareDevice
| 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.
|
int |
getLightDetectedRaw()
Get the amount of light detected by the sensor as an int.
|
java.lang.String |
status()
Status of this sensor, in string form
|
close, getConnectionInfo, getDeviceName, getVersiondouble getLightDetected()
int getLightDetectedRaw()
void enableLed(boolean enable)
enable - true to enable; false to disablejava.lang.String status()