ch.aplu.nxt
Interface AccelerometerListener


public interface AccelerometerListener

Class with declarations of callback methods for the prototype sensor.


Method Summary
 void accelerationChanged(SensorPort port, int[] values)
          Called when at least one of the x,y,z values changes.
 

Method Detail

accelerationChanged

void accelerationChanged(SensorPort port,
                         int[] values)
Called when at least one of the x,y,z values changes.

Parameters:
port - the port where the sensor is plugged in
values - the value of the x-, y-, z-axis acceleration: -512..511