VersBinarii / bme280-rs

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

*: extend init with Configuration #20

Closed mrd0ll4r closed 2 years ago

mrd0ll4r commented 2 years ago

This works towards fixing #19.

It doesn't compile because, for reasons unknown to me, cargo pulls in embedded_hal at v1.0.0-alpha.8, which changes some SPI interfaces. That all looks pretty arcane to me, so I didn't touch it.

Anyway, I'm feeling pretty good about the actual configuration stuff. Let me know if the way I implemented that is alright, i.e., using a Configuration struct with method chaining on it.

VersBinarii commented 2 years ago

Thanks for that. The alpha.8 version is because i didnt lock the specific e-h version. I fixed it now in latest release.

mrd0ll4r commented 2 years ago

Alright, I'm pretty happy with this now, PTAL :)