A Vishay library for devices VEML6040 R+G+B+W and VEML6075 UVA+UVB optical sensors. Data is stored in a dedicated data structure.
Dependents: vmel60xx_hello_world
This device library is for use with the Vishay VEML6040 and VEML6075 optical sensors. Ambient light conditions are gathered and stored in a user accessible data structure veml60xx_struct. The library has enough intelligence to determine which device is connected and performs the appropriate functions.
The VEML6040 detects Red, Green, Blue and White light data, which is easily converted to relative Lux intensities.
The VEML6075 detects UVA and UVB light which is converted to a UV Index value.
Since both devices use the same I2C address, they cannot be on the same I2C bus at the same time.
Tested on a K64F