Closed agarof closed 1 year ago
@agarof Thanks for the pull request. Let me know if you're planning any other related PRs that should be in the next release, so I hold off on making it until then.
@dcoles I should have time to implement embedded-hal
's digital traits for the GPIOs during the week.
I'm glad you're going to work on this, because I'd just started a few weeks ago integrating embedded-hal
myself (as part of writing SPI bindings, to write an example testing them), and was running into issues with the digital IO traits.
That is to say, I'll have #113 ready to review once there are GPIO bindings for embedded-hal
.
Implements the I2C traits from embedded-hal, both the 0.2 and 1.0 rc1 versions.
Both implementations are optional features to avoid forcing the dependencies onto users.
Tested quickly using a logic analyzer and the ssd1306 crate with the following code: