Skip to content

Commit

Permalink
Updated q/a on constructors - closes #2 and #3
Browse files Browse the repository at this point in the history
  • Loading branch information
jschilli committed Apr 16, 2024
1 parent 15a8915 commit 48b3742
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ The full API documentation can be found [here](wasi-proposal-template.md).

Although `embedded_hal` takes this approach, I would keep them separated for now. At least until each proposal is at least in Phase 2.

#### Why are there no constructors for the i2c interface? How does one obtain an i2c handle?

I2c resources will be constructed in many different ways on different devices, so worlds that include the i2c interface should also include a way to obtain i2c handles. Typically this will either be by having i2c handles passed into exported functions as parameters, or by having i2c handles returned from imported functions.

### Stakeholder Interest & Feedback

TODO before entering Phase 3.


### References & acknowledgements

Many thanks for valuable feedback and advice from:
Expand Down

0 comments on commit 48b3742

Please sign in to comment.