adafruit_bmp280

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)

pressure

The compensated pressure in hectoPascals.

sea_level_pressure = None

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

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’