public class LightSensor extends Object implements SensorValue
Constructor and Description |
---|
LightSensor(SensorValue sensorValue) |
Modifier and Type | Method and Description |
---|---|
int |
getAnalogValue()
Analog value returned by sensor, in the range of 0 to 1023.
|
int |
getStatusCode()
Six bit status code from the sensor, as a value from 0 to 63.
|
String |
lightValue() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isEngaged, isPassive, newSensorValue
public LightSensor(SensorValue sensorValue)
public int getAnalogValue()
SensorValue
getAnalogValue
in interface SensorValue
public int getStatusCode()
SensorValue
getStatusCode
in interface SensorValue
public String lightValue()
Copyright © 2016–2023. All rights reserved.