public class HTEopdSensor extends Sensor
Constructor and Description |
---|
HTEopdSensor()
Creates a sensor instance connected to the given port in long distance mode.
|
HTEopdSensor(SensorPort port)
Creates a sensor instance connected to the given port in long distance mode.
|
Modifier and Type | Method and Description |
---|---|
int |
getDistance()
Polls the sensor.
|
lejos.hardware.sensor.HiTechnicEOPD |
getLejosSensor()
Returns the reference of the the underlying
lejos.hardware.sensor.HiTechnicEOPD.
|
getLejosPort
public HTEopdSensor(SensorPort port)
port
- the port where the sensor is plugged-inpublic HTEopdSensor()
public lejos.hardware.sensor.HiTechnicEOPD getLejosSensor()
public int getDistance()