Skip to content

Provide lux value as a float rather than uint32_t #4

Open
@amaschas

Description

@amaschas

One of the advantages VEML6030 is its extreme sensitivity, which allows for a resolution well under 1 lux. The current implementation here, however, casts the light reading as an integer rather than a float, which limits the effective resolution of the sensor when using this library. Changing the return value of functions involved in reading and calculating the lux value of the sensor reading to float should rectify this. Alternatively, an additional function could be added to return the value as a float, while keeping the original implementation intact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions