|
SunSPOT API V3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILightSensorThresholdListener
Implemented by classes wanting a call back when the light sensor value goes above or below specified thresholds.
| Method Summary | |
|---|---|
void |
thresholdChanged(ILightSensor light,
int low,
int high)
Callback for when the light sensor thresholds are changed. |
void |
thresholdExceeded(ILightSensor light,
int val)
Callback for when the light sensor value goes above or below the specified thresholds. |
| Method Detail |
|---|
void thresholdExceeded(ILightSensor light,
int val)
light - the ILightSensor that has crossed a threshold.val - the current light sensor reading.
void thresholdChanged(ILightSensor light,
int low,
int high)
light - the ILightSensor that had its threshold values changed.low - the new light sensor low threshold value.high - the new light sensor high threshold value.
|
SunSPOT API V3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||