Skip to content

Provide lux value as a float rather than uint32_t #4

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

Open
amaschas opened this issue Mar 10, 2021 · 0 comments
Open

Provide lux value as a float rather than uint32_t #4

amaschas opened this issue Mar 10, 2021 · 0 comments

Comments

@amaschas
Copy link

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.

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

1 participant