public abstract class LightSensor extends java.lang.Object implements HardwareDevice
Constructor and Description |
---|
LightSensor() |
Modifier and Type | Method and Description |
---|---|
abstract void |
enableLed(boolean enable)
Enable the LED light
|
abstract double |
getLightDetected()
Get the amount of light detected by the sensor.
|
abstract int |
getLightDetectedRaw()
Get the amount of light detected by the sensor as an int.
|
abstract java.lang.String |
status()
Status of this sensor, in string form
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getConnectionInfo, getDeviceName, getVersion
public abstract double getLightDetected()
public abstract int getLightDetectedRaw()
public abstract void enableLed(boolean enable)
enable
- true to enable; false to disablepublic abstract java.lang.String status()
public java.lang.String toString()
toString
in class java.lang.Object