bmp180 - Temperature & Barometic Pressure Sensor¶
CircuitPython driver from BMP180 Temperature and Barometic Pressure sensor
Author(s): BadTigrou, Jose D. Montoya
-
class bmp180.BMP180(i2c_bus: busio.I2C, address: int =
119)[source]¶ Base BMP180 object. Use
BMP180_I2Cinstead of this. This checks the BMP180 was found, reads the coefficients and enables the sensor for continuous reads- property temperature¶
The compensated temperature in Celsius.
- property altitude¶
The altitude based on the sea level pressure - which you must enter ahead of time
- property pressure¶
The compensated pressure in hectoPascals.
- property mode¶
Operation mode Allowed values are set in the MODE enum class
Mode
Value
bmp180.MODE_ULTRALOWPOWER0x00bmp180.MODE_STANDARD0x01bmp180.MODE_HIGHRES0x02bmp180.MODE_ULTRAHIGHRES0x03Example¶
i2c = board.I2C() qmc = bmp180.BMP180(i2c) bmp180.mode = bmp180.MODE_HIGHRES
- property oversampling_setting¶
Oversampling setting Allowed values are set in the OVERSAMPLES enum class