claws / BH1750

An Arduino library for the digital light sensor breakout boards containing the BH1750FVI IC
MIT License
253 stars 108 forks source link

Erroneous luminance calculation with HIGH_RES_MODE_2 #1

Closed goebish closed 11 years ago

goebish commented 11 years ago

For HIGH_RES_MODE_2 modes the correct formula is: level = (level / 1.2) / 2

claws commented 11 years ago

I've merged in your separate pull request that you indicate resolves the issue. However I am not able to test it at this time as my unit appears to be broken.

goebish commented 11 years ago

Le 09/06/2013 03:23, claws a écrit :

I've merged in your separate pull request that you indicate resolves the issue. However I am not able to test it at this time as my unit appears to be broken.

— Reply to this email directly or view it on GitHub https://github.com/claws/BH1750/issues/1#issuecomment-19158995.

I made a mistake in my last commit and just made another pull request, sorry. I tested the code and it works.