adafruit / Adafruit_CircuitPython_BME280

CircuitPython driver for the BME280
MIT License
64 stars 42 forks source link

change I2c-address/ read two sensors #24

Closed braini1511 closed 5 years ago

braini1511 commented 5 years ago

Hi there,

is there any chance to read out two BME280 with your library? What would be needed to be changed?

best regards René

deshipu commented 5 years ago

Just specify the I2C address or SPI CS pin for each of the sensors when creating the sensor object.

caternuson commented 5 years ago

For I2C you also need to make a hardware change to set the address:

By default, the i2c address is 0x77. If you add a jumper from SDO to GND, the address will change to 0x76.