|Github Repo||C Header||C source||JS source|
This library provides support for the digital 16-bit ambient light sensor BH1730.
Mongoose OS C driver (mJS bindable) for Rohm BH1730 light sensor
bh1730_t *bh1730_init(int addr);
Create and return a BH1730 instance;
addris an I2C address of the BH1730 sensor.
float bh1730_read_lux(bh1730_t *d);
Return the ambient light level in lux, or -1 in case of a failure.
Create a BH1730 instance: an object with the methods described below.
addr is an i2c address of the BH1730 sensor.
Return the ambient light level in lux, or -1 in case of a failure.edit this doc