-
Notifications
You must be signed in to change notification settings - Fork 47
Enable i2c as a feature? #80
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
Comments
seems reasonable to me! though it may be a breaking change for folks selecting |
True, adding an |
I would be fine with adding |
Not time-critical at all, just ergonomics to me. I use modular hardware, missing components are expected. Building with inaccessible or missing hardware interfaces is fine for me. In my application it turns out to be less involved to just recognize a missing /dev/spidev, GPIO or serial at runtime then to stub out all the code. |
For anyone wanting to test this, there are branches for 0.3 and 0.4 to show the changes: |
Nice, would you create a PR with your feat-i2cspi04 branch? |
The dependency on
i2cdev
fori2c
is currently the only thing tying this to linux. I confirmed this crate to compile and work on unix withi2c
removed.Would it be an option to offer
i2c
as a (default enabled) feature?The text was updated successfully, but these errors were encountered: