theCore C++ embedded framework
ecl::sensor::bh1750_cfg Namespace Reference

This namespace contains sensor specific parameters. More...

Enumerations

enum  i2c_address { i2c_address::low, i2c_address::high }
 Represents I2C slave address for BH1750 sensor. More...
 
enum  resolution { resolution::low, resolution::high, resolution::high2 }
 Represents resolution mode BH1750 sensor. More...
 

Detailed Description

This namespace contains sensor specific parameters.

Enumeration Type Documentation

◆ i2c_address

Represents I2C slave address for BH1750 sensor.

According to RM, it is possible to select 2 type of I2C slave-address. It depends on ADDR pin state: pulled-down to GND - low, pulled-up to VCC - high

Enumerator
low 
high 

◆ resolution

Represents resolution mode BH1750 sensor.

According to RM, there are 3 resolution modes: L-mode (4lx), H-mode (1lx) and H-mode2 (0.5lx)

Enumerator
low 
high 
high2