klemens / si7021-rs

Rust I²C driver for the Si7021 hygrometer and thermometer
0 stars 1 forks source link

Updating driver to support `embedded-hal` #2

Open ryan-summers opened 3 days ago

ryan-summers commented 3 days ago

This PR refactors the driver to support the embedded-hal. The device can still be used on Linux through use of the linux-embedded-hal. I removed the old Thermometer and Hygrometer trait implementations because I do not think they are widely adopted or standardized yet.

I originally wrote this code ~6 years ago and recently picked up the project again, so I figured I'd open this PR for feedback.

This fixes #1


As an aside, if you do not want to maintain this driver anymore, it would always be welcome at https://github.com/rust-embedded-community :)