public interface LightListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
void |
bright(SensorPort port,
int level)
Called when the light becomes brighter than the trigger level.
|
void |
dark(SensorPort port,
int level)
Called when the light becomes darker than the trigger level.
|
void bright(SensorPort port, int level)
port
- the port where the sensor is plugged inlevel
- the current light levelvoid dark(SensorPort port, int level)
port
- the port where the sensor is plugged inlevel
- the current light level