API Reference

adafruit_bmp5xx

CircuitPython library for the BMP580 / BMP581 / BMP585 / etc barometric pressure sensors.

  • Author(s): Tim Cocks

Implementation Notes

Hardware:

Purchase BMP580 from the Adafruit shop Purchase BMP581 from the Adafruit shop Purchase BMP585 from the Adafruit shop

Software and Dependencies:

class adafruit_bmp5xx.BMP5XX(bus_device: I2CDevice | SPIDevice)

Bosche BMP5xx temperature and pressure sensor breakout CircuitPython driver.

property altitude: float

The altitude in meters based on the currently set sea level pressure.

command

Command register

data_ready: bool

True if data is ready.

data_ready_int_en: bool

Set to True to enable data_ready interrupt register.

deep_disabled

Deep standby disabled

fifo_full_int_en: bool

Set to True to enable FIFO full interrupt register.

fifo_full_interrupt: bool

True when FIFO is full.

fifo_threshold_int_en: bool

Set to True to enable FIFO threshold interrupt register.

fifo_threshold_interrupt: bool

True when FIFO reached threshold.

iir_flush_forced

Use FORCED mode for IIR filter flush.

int_status_por: bool

True if power on, or software reset complete.

property mode: int

Mode of operation. Must be one of the POWERMODE constants.

output_data_rate

Output data rate. Must be one of the ODR constants.

static over_i2c(i2c: I2C, address=DEFAULT_ADAFRUIT_ADDR)

Initialize BMP5XX breakout over I2C bus.

Parameters:
  • i2c – busio.I2C instance to communicate over

  • address – The I2C address to use. Defaults to DEFAULT_ADAFRUIT_ADDR

Returns:

Initialized BMP5XX object

static over_spi(spi: SPI, cs: DigitalInOut)

Initialize BMP5XX breakout over SPI bus.

Parameters:
  • spi – busio.SPI instance to communicate over

  • cs – DigitalInOut instance to use for chip select

Returns:

Initialized BMP5XX object

property pressure: float

Pressure in hPa.

pressure_enabled

Pressure readings enabled

pressure_fifo_iir

Pressure FIFO IIR order. Must be BMP5XX_BEFORE_IIR_FILTER or BMP5XX_AFTER_IIR_FILTER

pressure_iir_filter

Pressure IIR Filter. Must be one of the IIR_FILTER constants.

pressure_oor_int_en: bool

Set to True to enable pressure OOR interrupt register.

pressure_oor_interrupt: bool

True when pressure is OOR.

pressure_oversampling_rate

Pressure oversampling rate. Must be one of the OVERSAMPLING constants.

pressure_shadow_iir

Pressure shadow IIR order. Must be BMP5XX_BEFORE_IIR_FILTER or BMP5XX_AFTER_IIR_FILTER

reset() None

Reset the BMP5xx device.

status_nvm_err: bool

True if NVM is has an error.

status_nvm_ready: bool

True if NVM is ready.

property temperature: float

Temperature in degress C.

temperature_fifo_iir

Temperature FIFO IIR order. Must be BMP5XX_BEFORE_IIR_FILTER or BMP5XX_AFTER_IIR_FILTER

temperature_iir_filter

Temperature IIR Filter. Must be one of the IIR_FILTER constants.

temperature_oversampling_rate

Temperature oversampling rate. Must be one of the OVERSAMPLING constants.

temperature_shadow_iir

Temperature shadow IIR order. Must be BMP5XX_BEFORE_IIR_FILTER or BMP5XX_AFTER_IIR_FILTER