arduino / arduino/ArduinoCore-megaavr
Wire timeout commands appear to be missing
- Dominant language
- C++
- Stars
- 111
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Hi folks,
I am interfacing I2C to a temperature sensor which I do not have yet, so obviously my code receives no ACK and locks up.
I am using Arduino Wire and tried to use Wire.setWireTimeout(); but the atmelmegaavr library seems to have Wire.setTimeout(); instead
Reading the info on Wire, I expected to need to clear the timeout flag once this has occured but when I type Wire. the available clear option is clearWriteErrror but this does not seem to clear the timeout flag.
Is there another command I need to use or is it that the Wire.clearTimeout() function is not in the library?
I would appreciate your thoughts or suggestion,
Rob
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the Wire API described in the issue with the atmelmegaavr Wire library entry points, especially setTimeout(), clearWriteErrror, and the expected timeout-clearing commands. Done means the available API and timeout-flag behavior are consistent with the documented Wire interface, with a focused test or clarified documentation showing the result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, cpp
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100