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

History

Added a delay variable in veml60xx_struct that is dependent on the IT bits and 6040 vs 6075 default tip

2016-04-29, by loopsva [Fri, 29 Apr 2016 16:40:06 +0000] rev 4

Added a delay variable in veml60xx_struct that is dependent on the IT bits and 6040 vs 6075
; Note: There is something screwy with the VEML6075 and FORCE mode, specially when dynamically changing the IT bits. It required much longer delays than...


1. modified scaling in veml60xx::getConfig(veml60xx_struct& Pntr) for the VEML6075

2016-04-27, by loopsva [Wed, 27 Apr 2016 22:24:37 +0000] rev 3

1. modified scaling in veml60xx::getConfig(veml60xx_struct& Pntr) for the VEML6075
; 2. fixed error in VEML6040_LUX_STEP from 0.005625 to 0.007865


Bug fixes. Updated and added to data structure.

2016-04-25, by loopsva [Mon, 25 Apr 2016 22:35:08 +0000] rev 2

Bug fixes. Updated and added to data structure.


Minor documentation updates

2016-04-22, by loopsva [Fri, 22 Apr 2016 18:23:07 +0000] rev 1

Minor documentation updates


Separate from BME280 library - an mbed oddity...

2016-04-21, by loopsva [Thu, 21 Apr 2016 23:46:53 +0000] rev 0

Separate from BME280 library - an mbed oddity...