33 #ifndef ERRIEZ_BH1750_H__ 34 #define ERRIEZ_BH1750_H__ 56 explicit BH1750(uint8_t addrPinLevel=LOW);
69 unsigned long _completionTimestamp;
74 #endif // ERRIEZ_BH1750_H__ BH1750_Resolution_e
Resolution register bits.
bool waitForCompletion()
Wait for completion.
BH1750_Mode_e
Mode register bits.
void writeInstruction(uint8_t instruction)
Write instruction to sensor.
BH1750(uint8_t addrPinLevel=LOW)
Constructor.
void powerDown()
Power down. Call startConversion() to power-up automatically.
void begin(BH1750_Mode_e mode, BH1750_Resolution_e resolution)
Set mode and resolution.
void setTimestamp()
Save current time + minimum delay before reading next conversion in ms.
bool isConversionCompleted()
Wait for completion.
uint16_t read()
Read light level asynchronous from sensor The application is responsible for wait or checking a compl...
void startConversion()
Start conversion.