droid41 / NodeMCU

Sketches for NodeMCU using ArduinoIDE
0 stars 0 forks source link

Use auto-ranging/extended range for BH1750 #2

Open droid41 opened 6 years ago

droid41 commented 6 years ago

The sensor can actually measure 0.11 lux to about 100k or 120k lux (extended range), but the library https://github.com/claws/BH1750 currently does not support it.

Example for extended range: https://gist.github.com/Koepel/b70f81c71a52d8d6d3da86b9fe56d50e

Fork library and add extended range and auto-ranging-mode.