36#define BH1750FVI_ADDR_PIN_LOW (0x23)
37#define BH1750FVI_ADDR_PIN_HIGH (0x5c)
43#define BH1750FVI_DEFAULT_ADDR BH1750FVI_ADDR_PIN_LOW
48#define BH1750FVI_I2C_MAX_CLK I2C_SPEED_FAST
uint16_t bh1750fvi_sample(const bh1750fvi_t *dev)
Read a ambient light value from the given device [in LUX].
int bh1750fvi_init(bh1750fvi_t *dev, const bh1750fvi_params_t *params)
Initialize the given BH1750FVI device.
@ BH1750FVI_OK
everything was fine
@ BH1750FVI_ERR_I2C
error initializing the I2C bus
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
Set of configuration parameters for BH1750FV devices.
i2c_t i2c
I2C bus the device is connected to.
uint8_t addr
slave address of the device
Device descriptor for BH1570FVI devices.
i2c_t i2c
I2C bus the device is connected to.
uint8_t addr
slave address of the device