Skip to content
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

[bug] I²C Scanning fails #104

Closed
dansiviter opened this issue Dec 11, 2024 · 2 comments
Closed

[bug] I²C Scanning fails #104

dansiviter opened this issue Dec 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dansiviter
Copy link

Hardware

Arduino Nano Matter

Core version

2.0.0, 2.1.0, 2.2.0

Arduino IDE version

2.3.4

Operating system

Windows 11

Radio stack variant

Matter

OpenThread Border Router device (if using Matter)

No response

Issue description

Using typical I²C scanning (e.g. arduino.cc/I2cScanner) does not work. It seems the implementation of #endTransmission(...) assumes SUCCESS in most circumstances which appears incorrect.
This has been tried on multiple boards and using both Wire and Wire1 so assuming the code is at fault.

Serial output

Scanning...
I2C device found at address 0x01  !
I2C device found at address 0x02  !
I2C device found at address 0x03  !
I2C device found at address 0x04  !
I2C device found at address 0x05  !
I2C device found at address 0x06  !
... truncated for brevity ...
I2C device found at address 0x79  !
I2C device found at address 0x7A  !
I2C device found at address 0x7B  !
I2C device found at address 0x7C  !
I2C device found at address 0x7D  !
I2C device found at address 0x7E  !
done

RTT output (if using Matter)

No response

Minimal reproducer code

Use arduino.cc/I2cScanner) example.

@dansiviter dansiviter added the bug Something isn't working label Dec 11, 2024
@lyusupov
Copy link

Duplicates #84

@dansiviter
Copy link
Author

Thanks @lyusupov. I'll close in preference to #84.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants