Package com.diozero.devices
Class LPS25H
- java.lang.Object
-
- com.diozero.devices.LPS25H
-
- All Implemented Interfaces:
DeviceInterface
,BarometerInterface
,SensorInterface
,ThermometerInterface
,AutoCloseable
public class LPS25H extends Object implements ThermometerInterface, BarometerInterface
STMicroelectronics LPS25H "ultra compact absolute piezoresistive pressure sensor". Datasheet: http://www2.st.com/content/ccc/resource/technical/document/datasheet/58/d2/33/a4/42/89/42/0b/DM00066332.pdf/files/DM00066332.pdf/jcr:content/translations/en.DM00066332.pdf Example implementation: https://github.com/richards-tech/RTIMULib/blob/master/RTIMULib/IMUDrivers/RTPressureLPS25H.cpp Eclipse Kura implementation: https://github.com/eclipse/kura/tree/develop/kura/examples/org.eclipse.kura.raspberrypi.sensehat/src/main/java/org/eclipse/kura
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this devicefloat
getPressure()
Get the pressure in kPafloat
getTemperature()
Get temperature in degrees celsius
-
-
-
Method Detail
-
getPressure
public float getPressure()
Description copied from interface:BarometerInterface
Get the pressure in kPa- Specified by:
getPressure
in interfaceBarometerInterface
- Returns:
- pressure in kPa
-
getTemperature
public float getTemperature()
Description copied from interface:ThermometerInterface
Get temperature in degrees celsius- Specified by:
getTemperature
in interfaceThermometerInterface
- Returns:
- Temperature (deg C)
-
close
public void close()
Description copied from interface:DeviceInterface
Close this device- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDeviceInterface
-
-