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
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
4:0ce65ee5697f | 2016-04-29 | loopsva | Added a delay variable in veml60xx_struct that is dependent on the IT bits and 6040 vs 6075 |
3:dda770fa7228 | 2016-04-27 | loopsva | 1. modified scaling in veml60xx::getConfig(veml60xx_struct& Pntr) for the VEML6075 |
2:c17b84879a2f | 2016-04-25 | loopsva | Bug fixes. Updated and added to data structure. |
1:f560bd61b3b3 | 2016-04-22 | loopsva | Minor documentation updates |
0:92cb496cbbe1 | 2016-04-21 | loopsva | Separate from BME280 library - an mbed oddity... |