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

embedded-hal traits: synchronous bitbang i2c #3

Merged
merged 1 commit into from
Jun 22, 2019
Merged

embedded-hal traits: synchronous bitbang i2c #3

merged 1 commit into from
Jun 22, 2019

Conversation

geomatsi
Copy link
Collaborator

This PR implements embedded-hal i2c traits using blocking gpio bitbang approach.
Minimal documentation and example code are provided in rustdoc format.

In brief, this implementation requires the following h/w resources:

  • two gpio pins configured as Open-Drain outputs
  • periodic timer which frequency should be twice as required i2c clock

So far this implementation has been tested using AT24 serial EEPROM and LM75A temperature sensor.
Full examples for BluePill board are available in the following repository with examples:

Regards,
Sergey

Implementation of embedded-hal i2c traits using
blocking gpio bitbang approach.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
@sajattack
Copy link
Owner

sajattack commented Jun 22, 2019

Looks great, thanks!

@sajattack sajattack merged commit c2ab291 into sajattack:master Jun 22, 2019
@geomatsi geomatsi deleted the i2c-bitbang branch July 1, 2019 18:47
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.

2 participants