adafruit_bmp280 - Adafruit BMP280 - Temperature & Barometic Pressure Sensor

CircuitPython driver from BMP280 Temperature and Barometic Pressure sensor

  • Author(s): ladyada
class adafruit_bmp280.Adafruit_BMP280[source]

Base BMP280 object. Use Adafruit_BMP280_I2C or Adafruit_BMP280_SPI instead of this. This checks the BMP280 was found, reads the coefficients and enables the sensor for continuous reads

altitude

The altitude based on the sea level pressure (sea_level_pressure) - which you must enter ahead of time)

iir_filter

Controls the time constant of the IIR filter Allowed values are set in the IIR_FILTER enum class

measurement_time_max

Maximum time in milliseconds required to complete a measurement in normal mode

measurement_time_typical

Typical time in milliseconds required to complete a measurement in normal mode

mode

Operation mode Allowed values are set in the MODE enum class

overscan_pressure

Pressure Oversampling Allowed values are set in the OVERSCAN enum class

overscan_temperature

Temperature Oversampling Allowed values are set in the OVERSCAN enum class

pressure

The compensated pressure in hectoPascals. returns None if pressure measurement is disabled

sea_level_pressure = None

Pressure in hectoPascals at sea level. Used to calibrate altitude.

standby_period

Control the inactive period when in Normal mode Allowed standby periods are set the STANDBY enum class

temperature

The compensated temperature in degrees celsius.

class adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=119)[source]

Driver for I2C connected BMP280. Default address is 0x77 but another address can be passed in as an argument

class adafruit_bmp280.Adafruit_BMP280_SPI(spi, cs, baudrate=100000)[source]

Driver for SPI connected BMP280. Default clock rate is 100000 but can be changed with ‘baudrate’