Skip to content

All pulled data is zero #2

Description

@nemirog1

First, thank you for putting the effort into this library! Have an issue where I can see the Part ID, Manufacturer ID, and it seems to set the configuration commands. After that, all data pulled is set to zero. I tried modifying the code to directly see the results of errors, but it is always zero. If you use the Arduino example, you get something like:
10:20:43.950 -> LTR303-ALS example sketch
10:20:43.950 -> Got Sensor Part ID: 0XA0
10:20:43.950 -> Got Sensor Manufacturer ID: 0X5

10:20:43.950 -> data0: 0
10:20:43.950 -> data1: 0
10:20:43.950 -> lux: 0.00
10:20:43.950 -> (good)

So it seems that it thinks the I2C communications are good, but all the data is zero. I thought I might have a bad device, so I tried on a separate sensor and Arduino, same results. I saw that someone else was posting up with this issue on various forums. Do you have any ideas on what to check?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions