sajattack / bitbang-hal

Implements embedded-hal traits by bitbanging
MIT License
40 stars 10 forks source link

embedded-hal traits: synchronous bitbang i2c #3

Closed geomatsi closed 5 years ago

geomatsi commented 5 years ago

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:

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

sajattack commented 5 years ago

Looks great, thanks!