VersBinarii / bme280-rs

A platform agnostic Rust driver for the Bosch BM[PE]-280
Other
59 stars 73 forks source link

Add support for SPI. #6

Closed mgottschlag closed 2 years ago

mgottschlag commented 4 years ago

The patches add support for BME280s connected via SPI. They move the i2c-specific parts of the driver to crate::i2c:: and add a second "BME280" struct in crate::spi::.

What is still missing is an example about how to use the sensor - where should that example go?

I was not able to test I2C functionality after the changes, but SPI seems to work.

sbruton commented 4 years ago

Thanks for adding this!

sbruton commented 4 years ago

I am going to test i2c before merging.

irwineffect commented 3 years ago

What's the status of this PR?

fishrockz commented 3 years ago

I can verify that this works for both i2c and spi with the bluepill dev board.

Looking forward to seeing this merged as this is a great little lib but i would rather use it with spi for my application.

irwineffect commented 2 years ago

I have also verified this works on SPI, could we get this merged?