arduino / arduino/ArduinoCore-samd
Wire lib hangs when scanning i2c in Wire.endTransmission()
- Dominant language
- C
- Stars
- 502
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I tried the well known i2c scanner found on Arduino playground with a Feather M0.
Unfortunately the program hangs while testing
` error = Wire.endTransmission();
`
In many libraries (for ex. the BME280 lib) this test is used to check if the sensor (based on it's i2c address) is present.
On Arduino and ESP the i2c scanner is working.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Arduino Playground I2C scanner on a Feather M0, focusing on the Wire.endTransmission() call named in the report. Inspect the implementation and surrounding I2C handling; done means the scan returns instead of hanging and can determine whether devices are present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100