lejos.nxt
Interface SensorPortListener
public interface SensorPortListener
Interface for monitoring changes to the value for an
Analogue/Digital sensor (such as a Touch, Light or Sound sensor)
on a SensorPort.
Method Summary |
void |
stateChanged(SensorPort aSource,
int aOldValue,
int aNewValue)
Called when the raw value of the sensor attached to the port changes. |
stateChanged
void stateChanged(SensorPort aSource,
int aOldValue,
int aNewValue)
- Called when the raw value of the sensor attached to the port changes.
- Parameters:
aSource
- The Port that generated the event.aOldValue
- The old sensor raw value.aNewValue
- The new sensor raw value.