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

No need to wait for data after Wire.requestFrom() #5

Open
Koepel opened this issue Aug 20, 2016 · 0 comments
Open

No need to wait for data after Wire.requestFrom() #5

Koepel opened this issue Aug 20, 2016 · 0 comments
Assignees

Comments

@Koepel
Copy link

Koepel commented Aug 20, 2016

There is a while-loop with a delay after the Wire.requestFrom() call. That while-loop is not needed and that delay is not needed.

When the Wire.requestFrom() function returns, the I2C transaction has completely finished and the received data is in the receive buffer in the Wire library. The Wire.read() only reads data from that buffer.

@bboyho bboyho self-assigned this Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants