Library for interfacing Vishay VEML7700 Ambient Light Sensor with I2C Interface
The VEML7700 is a high accuracy ambient light digital 16-bit resolution sensor -) I2C interface with communication speed up to 400 kHz -) Includes a high sensitive photo diode -) Includes a low noise amplifier -) Includes an 16-bit A/D converter
typical I2C clock speed to be used
VEML7700 I2C address
VEML7700 configuration (Bitmask for VEML7700_CMD_ALS_CONF_0)
Available ALS gain settings (VEML7700_CMD_ALS_CONF_0, Bit 11-12)
Available ALS integration time settings (VEML7700_CMD_ALS_CONF_0, Bit 6-9)
(1 << 1): ALS interrupt enable setting
(1 << 0): ALS shut down setting (Default)
Initializes i2c communication with the VEML7700
Activates the VEML7700 by setting the "ALS_CONF_0" register
Reads Ambient Light Result and WHITE Output data form the VEML7700
Sets the VEML7700 into shut down mode and thus grants minimum power consumption
absolute maximum I2C clock speed
Available Commands for VEML7700 Access (Command | R/W | Description)
Perform raw VEML7700 Read/Write access. Data is first of all sent and data is then received.