|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecticommand.platform.nxt.Light
public class Light
Constructor Summary | |
---|---|
Light(Sensor sensor)
Light Sensor. |
Method Summary | |
---|---|
void |
activate()
Turns on the LED light. |
int |
getLightPercent()
Returns light reading as a percentage. |
int |
getLightValue()
Normalized value. |
void |
passivate()
Turns off the LED light so it can passively read light values. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Light(Sensor sensor)
sensor
- Method Detail |
---|
public int getLightPercent()
public int getLightValue()
public void passivate()
public void activate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |