Closed claws closed 6 years ago
private uint8_t BH1750_MODE
with the value 0x00 and check this, because it get only written if the configure() call was successful. And this variable is misleading, because we can't read this value from the sensor over i2c, we assume it only internally. Maybe the sensor is hitted by a power reset and return without our knowledge unconfigured.I'm attempting to fix these issues in #33.
Continuous mode examples were not working properly. Now both Continuous and One-Time mode examples work as expected. Values are observed without problems being reported (i.e. first measurement appears to work fine). This change should resolve the problem noted in #28.
This change fixes #27, #28.
Other changes:
begin
to detect setup problems.