Class BMP180

java.lang.Object
com.diozero.devices.BMP180
All Implemented Interfaces:
BarometerInterface, SensorInterface, ThermometerInterface, Closeable, AutoCloseable

public class BMP180
extends Object
implements ThermometerInterface, BarometerInterface, Closeable
Bosch BMP180 I2C temperature and pressure sensor
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  BMP180.BMPMode
    Relationship between sampling mode and conversion delay (in ms) for each sampling mode Ultra low power: 4.5 ms minimum conversion delay Standard: 7.5 ms High Resolution: 13.5 ms Ultra high Resolution: 25.5 ms
  • Constructor Summary

    Constructors
    Constructor Description
    BMP180​(int controller, BMP180.BMPMode mode)  
    BMP180​(BMP180.BMPMode mode)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    void close()  
    float getPressure()
    Read the barometric pressure (in hPa) from the device.
    float getTemperature()
    Method for reading the temperature.
    void readCalibrationData()
    This method reads the calibration data common for the Temperature sensor and Barometer sensor included in the BMP180

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait