public class PrototypeAdapter extends java.lang.Object implements PrototypeListener
Constructor and Description |
---|
PrototypeAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
ainChanged(SensorPort port,
int[] values)
Empty method called when at least one of the 5 analog inputs changed its value.
|
void |
dinChanged(SensorPort port,
int[] values)
Empty method called when at least one of the digital inputs changed its value.
|
public void ainChanged(SensorPort port, int[] values)
ainChanged
in interface PrototypeListener
port
- the port where the sensor is plugged invalues
- the value of the analog input channels: 0..1023 or -1 if unchangedpublic void dinChanged(SensorPort port, int[] values)
dinChanged
in interface PrototypeListener
port
- the port where the sensor is plugged invalues
- the value of the 6 digital channels: 0, 1 or -1 if unchanged or not an input