From 48b37424be10644f7eb3900122fd0102b1060bf0 Mon Sep 17 00:00:00 2001 From: Jeff Schilling Date: Mon, 15 Apr 2024 19:50:55 -0500 Subject: [PATCH] Updated q/a on constructors - closes #2 and #3 --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2217b28..a9a1e28 100644 --- a/README.md +++ b/README.md @@ -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: