-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
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.
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
Labels
No labels