|
Envorimental Monitoring
|
BH1750 driver handle. More...
#include <bh1750.h>
Data Fields | |
| BH1750_I2C_Read_Func | i2c_read |
| BH1750_I2C_Write_Func | i2c_write |
| BH1750_Delay_Func | delay_ms |
| uint8_t | address |
| uint8_t | mode |
| float | lux |
BH1750 driver handle.
Populate all fields before calling BH1750_Init(). After a successful BH1750_Read() the result is available in the lux field.
| uint8_t address |
8-bit I2C device address (use BH1750_ADDRESS_GND or _VCC).
| BH1750_Delay_Func delay_ms |
Platform delay function pointer.
| BH1750_I2C_Read_Func i2c_read |
Platform I2C read function pointer.
| BH1750_I2C_Write_Func i2c_write |
Platform I2C write function pointer.
| float lux |
Last measured illuminance in lux.
| uint8_t mode |
Measurement mode command byte (see mode constants below).