public class HTBarometer extends Sensor
| Constructor and Description |
|---|
HTBarometer()
Creates a sensor instance connected to port S1.
|
HTBarometer(SensorPort port)
Creates a sensor instance connected to the given port.
|
| Modifier and Type | Method and Description |
|---|---|
lejos.hardware.sensor.HiTechnicBarometer |
getLejosSensor()
Returns the reference of the the underlying
lejos.hardware.sensor.HiTechnicBarometer.
|
int |
getValue()
Returns the barometric pressure.
|
getLejosPortpublic HTBarometer(SensorPort port)
port - the port where the sensor is plugged-inpublic HTBarometer()
public lejos.hardware.sensor.HiTechnicBarometer getLejosSensor()
public int getValue()