rust-embedded / embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems
Apache License 2.0
1.95k stars 197 forks source link

bus: Add a doc example for i2c::RefCellDevice #458

Closed tommy-gilligan closed 1 year ago

tommy-gilligan commented 1 year ago

embedded-hal-bus is turning out to be very useful for something I'm working on. It wasn't too hard to work out how to use it but it feels like an example would still be helpful here. Not sure:

Dirbaio commented 1 year ago

The example looks nice! :+1:. I'd put it on the struct instead of on new(), so that it's more visible.

Dirbaio commented 1 year ago

Could you check the CI failure?

tommy-gilligan commented 1 year ago

Sorry, wasn't paying enough attention to what I was committing earlier.

Dirbaio commented 1 year ago

Thank you!

bors r+

bors[bot] commented 1 year ago

:-1: Rejected by too few approved reviews

bors[bot] commented 1 year ago

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here. For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.