ch.aplu.nxt
Interface PrototypeListener

All Known Implementing Classes:
PrototypeAdapter

public interface PrototypeListener

Class with declarations of callback methods for the prototype sensor.


Method Summary
 void ainChanged(SensorPort port, int[] values)
          Called when at least one of the 5 analog inputs changed its value.
 void dinChanged(SensorPort port, int[] values)
          Called when at least one of the digital inputs changed its value.
 

Method Detail

ainChanged

void ainChanged(SensorPort port,
                int[] values)
Called when at least one of the 5 analog inputs changed its value.

Parameters:
port - the port where the sensor is plugged in
values - the value of the analog input channels: 0..1023 or -1 if unchanged

dinChanged

void dinChanged(SensorPort port,
                int[] values)
Called when at least one of the digital inputs changed its value.

Parameters:
port - the port where the sensor is plugged in
values - the value of the 6 digital channels: 0, 1 or -1 if unchanged or not an input