adafruit / Adafruit_TSL2591_Library

This is an Arduino library for the TSL2591 digital luminosity (light) sensors.
58 stars 48 forks source link

Resolution #5

Closed rajdarge closed 6 years ago

rajdarge commented 8 years ago

The TSL2591 is special because it can read to low light level (188microlux). there are a few problems with the Universal sensor definition: sensor -> resolution = 0.0001 (currently = 1.0)

Also the calculateLux function is set to a uint32_t when it should be a float (currently it tuncates the result to an integer). even with these changes though event.light still truncates the value to 2 decimal places. I can't seem to figure out why.

ladyada commented 6 years ago

done!