6 #ifndef __SENSORS_BH1750_h__
7 #define __SENSORS_BH1750_h__
16 template <
byte ADDRESS=0x23,::BH1750::Mode MODE=::BH1750::Mode::CONTINUOUS_HIGH_RES_MODE>
20 Bh1750 () : _bh(ADDRESS) {}
22 _present = _bh.begin(MODE);
24 void measure (__attribute__((unused))
bool async=
false) {
25 if( present() ==
true ) {
26 _brightness = _bh.readLightLevel();