Skip to content

Did something with this project recently change? The examples no longer work. #53

@Jieiku

Description

@Jieiku

I used the examples here as a starting point for a project on a raspberry pi over a year ago, it has worked without issue.

https://github.com/adafruit/Adafruit_CircuitPython_BME280/blob/main/examples/bme280_simpletest.py

I recently tried to recreate the project on another raspberry pi but this library seems to have changed?

I installed it like this:

pip3 install smbus2 adafruit-circuitpython-bme280

before I had these lines:

import adafruit_bme280
i2c = busio.I2C(board.SCL, board.SDA)
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c, 0x76)

now I have:

import Adafruit_BME280
i2c = busio.I2C(board.SCL, board.SDA)
bme280 = Adafruit_BME280.Adafruit_BME280_I2C(i2c, 0x76)

Notice I had to capitalize the library, which is fine however I am now seeing:

AttributeError: module 'Adafruit_BME280' has no attribute 'Adafruit_BME280_I2C'

additionally the guide on the main page for this project appears to be out of date as well: https://github.com/adafruit/Adafruit_CircuitPython_BME280#usage-example

Really appreciate any help on this, Thanks a Ton!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions