adafruit / Adafruit_BME680

127 stars 76 forks source link

Can't modify the library to work on other i2C buses #35

Closed rayan4444 closed 5 years ago

rayan4444 commented 5 years ago

I am working with a BME680 breakout and trying to use it on an alternative I2C bus on the ATSAMD21G. I've been trying to modify the library to add the option to choose which I2C bus to use the sensor on, without success. Does anyone have advice on how to do it?

That said, I've had to do these modifications on plenty of libraries because all of them only support the default "Wire" bus. It would be a nice feature to add...

ladyada commented 5 years ago

see https://github.com/adafruit/Adafruit_BME680/blob/master/Adafruit_BME680.cpp#L60