-
Notifications
You must be signed in to change notification settings - Fork 10
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
Remove I2cInterface
.
#20
Conversation
243adb8
to
97bb9dc
Compare
ReadData
and WriteData
traits.I2cInterface
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, thanks!
This driver was designed to support SPI devices as well but these turned out to have a different interface, registers, etc.
src/lib.rs
Outdated
@@ -24,7 +24,7 @@ | |||
//! [`into_continuous()`]: struct.Ads1x1x.html#method.into_continuous | |||
//! [read_os]: struct.Ads1x1x.html#method.read | |||
//! [`start()`]: struct.Ads1x1x.html#method.start | |||
//! [read_cont]: struct.Ads1x1x.html#impl-OneShot%3CAds1x1x%3CDI%2C%20IC%2C%20CONV%2C%20OneShot%3E%2C%20i16%2C%20CH%3E | |||
//! [read_cont]: struct.Ads1x1x.html#impl-OneShot%3CAds1x1x%3CI2C%2C%20IC%2C%20CONV%2C%20OneShot%3E%2C%20i16%2C%20CH%3E |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this link correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, fixed.
I fixed the CI now and added a couple of small changes. |
00b763c
to
e19bb95
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sinceembedded_hal::i2c::I2c
provides bothread
andwrite
, it make sense to merge theReadData
andWriteData
traits.Removes
I2cInterface
and instead depend on theembedded-hal
traits directly.