-
Notifications
You must be signed in to change notification settings - Fork 62
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
How to use i2c_external
with microbit-v2?
#121
Comments
You'll probably want to put the This sounds like maybe an It's weird that you're not seeing any activity on the external pins with a scope: especially since you're getting a NACK, which I think should only happen when a bus transaction was tried and failed. Not sure how to help further without an SHTC device, I'm afraid. |
I'll give that a go when I have some free time on a weekend.
If we have bogus pin-muxing, the I2C controller thinks it has driven the correct signals, but they have not propagated to external balls on the die. When waiting for an ACK, there was also no activity, then it signals a NAK and asserts interrupt signal. It can happen :) |
Any status on this? |
Does using |
Hi,
I'm attempting to read from shtc3 sensor connected to microbit-v2 via i2c external pins. For testing, I'm using a minimal RTIC app with one task which received a local context containing the
Twim:<TWIM0>
instance which it uses to instantiate shtc3. When attempting to build the application, it results in unsatisfied trait bounds:If I move the code to
init()
, then it compiles fine, but there is no activity on the i2c external pins (checked with an oscilloscope) and every transaction results in a Nack.Is there anything else I need to do to get i2c_external to work? Here's a minimal version of my code:
The text was updated successfully, but these errors were encountered: