Driver for the Rohm BH1750FVI ambient light sensor.
| ||Command definition for the BH1750FVI light sensor. |
| ||Interface definition for the Rohm BH1750FVI ambient light sensor. |
|#define BH1750FVI_ADDR_PIN_LOW (0x5c)
The actual address of the device depends on the state of the ADDR pin.ADDR pin := 0
Definition at line 36 of file bh1750fvi.h.
◆ anonymous enum
everything was fine
error initializing the I2C bus
Definition at line 54 of file bh1750fvi.h.
|[out]||dev||device descriptor of the targeted device |
|[in]||params||device configuration (i2c bus, address and bus clock)|
- 0 on success
-1 if unable to speak to the device
The result value is the measured ambient light intensity in LUX and ranges from 0 to 54612. Taking one measurement takes ~120ms, so it takes this amount of time until the function returns.
|[in]||dev||device descriptor of the targeted device|
- ambient light intensity in LUX