Skip to content
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

Add async support to the I2C driver #519

Merged
merged 4 commits into from
May 10, 2023

Conversation

jessebraham
Copy link
Member

I've tested all examples on hardware and confirmed they're working. The ESP32-H2 is omitted for now, until I2C support has been added for it.

We could probably do some refactoring to reduce code duplication a bit, but that's outside the scope of this PR, IMO.

This is the first async driver I've written so hopefully I've gotten things mostly right 😁

@jessebraham jessebraham requested review from bjoernQ and MabezDev May 9, 2023 17:16
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me - however I cannot test it

@jessebraham
Copy link
Member Author

Rebased to resolve conflicts

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't test it, but looks good to me! Thanks for taking care of this :)

@jessebraham jessebraham merged commit b435166 into esp-rs:main May 10, 2023
@jessebraham jessebraham deleted the feature/async-i2c branch May 10, 2023 17:40
SergioGasquez pushed a commit to SergioGasquez/esp-hal that referenced this pull request Jun 9, 2023
* Small refactor to extract functions for setting up reads/writes

* Implement async capabilities for `I2C` driver

* Add async I2C examples for each supported chip

* Update CHANGELOG
i404788 pushed a commit to i404788/esp-hal that referenced this pull request Jul 22, 2023
* Small refactor to extract functions for setting up reads/writes

* Implement async capabilities for `I2C` driver

* Add async I2C examples for each supported chip

* Update CHANGELOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants