Skip to content

No need to wait after Wire.requestFrom() #4

Open

Description

@Koepel

When the Wire.requestFrom() returns, the I2C transaction has completely finished and the received data is waiting in a buffer in the Wire library. There is no need to wait for something.

You can remove all the while(Wire.available() == 0); in the file "PUREmodules/Arduino/HardwareTest/Si1153_demo/Si1153_demo.ino".

Explanation: Common-mistakes#1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions