Skip to content

No need to wait after a Wire.requestFrom() and it should not be followed by Wire.endTransmission(). #2

@Koepel

Description

@Koepel

After the Wire.requestFrom(), the I2C transaction has completely finished. You can remove the while-loops with the delay in two places after the call to Wire.requestFrom().

In the function getLux(), the Wire.requestFrom() is followed by Wire.endTransmission(). You can remove that Wire.endTransmission, it should only be used when writing data.

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