Interface definition for the Rohm BH1750FVI ambient light sensor. More...
Interface definition for the Rohm BH1750FVI ambient light sensor.
Definition in file bh1750fvi.h.
#include "periph/i2c.h"
Include dependency graph for bh1750fvi.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | bh1750fvi_t |
| Device descriptor for BH1570FVI devices. More... | |
| struct | bh1750fvi_params_t |
| Set of configuration parameters for BH1750FV devices. More... | |
Macros | |
| #define | BH1750FVI_DEFAULT_ADDR BH1750FVI_ADDR_PIN_LOW |
| Default address of BH1750FVI sensors. | |
| #define | BH1750FVI_I2C_MAX_CLK I2C_SPEED_FAST |
| Maximum I2C bus speed to use with the device. | |
Enumerations | |
| enum | { BH1750FVI_OK = 0 , BH1750FVI_ERR_I2C = -1 } |
| Status and error return codes. More... | |
Functions | |
| int | bh1750fvi_init (bh1750fvi_t *dev, const bh1750fvi_params_t *params) |
| Initialize the given BH1750FVI device. More... | |
| uint16_t | bh1750fvi_sample (const bh1750fvi_t *dev) |
| Read a ambient light value from the given device [in LUX]. More... | |
Possible I2C bus addresses of the device | |
The actual address of the device depends on the state of the ADDR pin. | |
| #define | BH1750FVI_ADDR_PIN_LOW (0x23) |
| ADDR pin := 0. | |
| #define | BH1750FVI_ADDR_PIN_HIGH (0x5c) |
| ADDR pin := 1. | |