joshendriks / pimatic-bh1750

Pimatic support for the bh1750 light intensity sensor
Apache License 2.0
0 stars 3 forks source link

Add property to select resolution/sensitivity mode #5

Open mwittig opened 8 years ago

mwittig commented 8 years ago

The sensor provides different resolution/sensitivity modes while “H-Resolution Mode” (1 lx, 120ms measurement time) seems to be activated by default (which is good). However, the device also provides a “H-Resolution Mode2” (0.5lx, 120ms) which might be interesting for some applications, e.g. in extreme low-light situations. Therefore, it would be nice to have a device configuration property to select the measurement mode. To get this mapped directly to the base driver, it should be named “command”. It may also be interesting to use the “Power Down after measurement” commands.