Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SPI. #6

Merged
merged 3 commits into from Mar 31, 2022
Merged

Add support for SPI. #6

merged 3 commits into from Mar 31, 2022

Conversation

mgottschlag
Copy link
Contributor

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
Copy link
Collaborator

sbruton commented May 27, 2020

Thanks for adding this!

@sbruton
Copy link
Collaborator

sbruton commented May 27, 2020

I am going to test i2c before merging.

@irwineffect
Copy link

What's the status of this PR?

@fishrockz
Copy link

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
Copy link

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

@VersBinarii VersBinarii merged commit 102ea73 into VersBinarii:master Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants