-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support embedded-hal #1
Comments
This sounds good!
This is fine. However, it seems to be implemented by reopening the device instead of just calling
Yeah, I also don't see a reason for the |
My gut feeling about this is that it's "It's good enough to work, so nobody ever bothered" situation; will you send an issue or PR there?
Now tracked as martindeegan/i2cdev-sensors#4; I'll send a PR with my current status when I get feedback there, for much delta is currently workarounds. |
Found the discussion, and It also seems wose and me were writing si7021 drivers at the same time, although his is much more feature-complete (supports no_std, but no i2csensors traits). 😅 |
This sensor is suitable for use in embedded (bare-metal or embedded OS, no_std) environments. As it is now, the crate can not be used there as it depends on i2cdev, which is explicitly linux-bound.
The embedded-hal crate provides traits for I2C access (but not device creation, that stays platform dependent) which can be implemented in a portable way, and is no_std. There exists a linux-embedded-hal crate that implements the embedded-hal blocking I2C trait in terms of i2cdev.
Would you consider rebasing si7021 onto embedded-hal to make it usable on smaller systems? Most of the changes are trivial, the big ones are:
Is this a route that you'd be, in general, willing to explore / to go?
I do have a working implementation of that which just needs some clean-up before being submitted as a PR.
The text was updated successfully, but these errors were encountered: