public class LightAdapter extends java.lang.Object implements LightListener
Constructor and Description |
---|
LightAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
bright(SensorPort port,
int value)
Empty method called when the light becomes brighter than the trigger level.
|
void |
dark(SensorPort port,
int value)
Empty method called when the light becomes darker than the trigger level.
|
public void bright(SensorPort port, int value)
bright
in interface LightListener
port
- the port where the sensor is plugged invalue
- the current light level.public void dark(SensorPort port, int value)
dark
in interface LightListener
port
- the port where the sensor is plugged invalue
- the current light value