Go to the documentation of this file.
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
uint8_t addr
slave address of the device
uint8_t addr
slave address of the device
Device descriptor for BH1570FVI devices.
unsigned int i2c_t
Default i2c_t type definition.
Set of configuration parameters for BH1750FV devices.
i2c_t i2c
I2C bus the device is connected to.
@ BH1750FVI_ERR_I2C
error initializing the I2C bus
uint16_t bh1750fvi_sample(const bh1750fvi_t *dev)
Read a ambient light value from the given device [in LUX].
i2c_t i2c
I2C bus the device is connected to.
@ BH1750FVI_OK
everything was fine
int bh1750fvi_init(bh1750fvi_t *dev, const bh1750fvi_params_t *params)
Initialize the given BH1750FVI device.
Low-level I2C peripheral driver interface definition.