Envorimental Monitoring
Loading...
Searching...
No Matches
BH1750_HandleTypeDef Struct Reference

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

Detailed Description

BH1750 driver handle.

Populate all fields before calling BH1750_Init(). After a successful BH1750_Read() the result is available in the lux field.

Field Documentation

◆ address

uint8_t address

8-bit I2C device address (use BH1750_ADDRESS_GND or _VCC).

◆ delay_ms

Platform delay function pointer.

◆ i2c_read

Platform I2C read function pointer.

◆ i2c_write

Platform I2C write function pointer.

◆ lux

float lux

Last measured illuminance in lux.

◆ mode

uint8_t mode

Measurement mode command byte (see mode constants below).


The documentation for this struct was generated from the following file: