Bosch BME280 sensor working via I2C with Artemis

In case anyone else is looking to get a BME280 (temperature/humidity/pressure sensor) IC working with the Artemis via I2C, I can confirm I have done it successfully via I2C port 2. The Sparkfun BME280 library I used to use didn’t allow port selection, and my half-hearted attempts to update it didn’t work.

However, success was achieved by using the newer Bolder Flight Systems BME280 library, available here https://github.com/bolderflight/BME280 (it allows establishment of the I2C port as per the Artemis Advanced I2C Example, and then passing of that port to the constructor).

Ie.

TwoWire myWire(2); //Will use pads 25/27, pins 
BME280 bme(myWire,0x76);

Awesome! Glad you found a workaround – I will put an issue on the BME280 library b/c we should support custom ports as well.

For completeness here’s a response on GitHub

https://github.com/sparkfun/SparkFun_BM … -555173606