Arduino/ESP32 library needed for a rgb ambient light sensor

Job ID: 31218856

Budget: €30 – €250 EUR

Arduino/ESP32 library needed for a rgb ambient light sensor using the Arduino IDE and its I2C wire library.

i need a driver library for following I2C sensor.
LTR-381RGB.
dont need all functions so far.
it should be doable to set the gain.
ALS_CS_GAIN Register (0x05) (Read/Write)

as i would need the data for following channels
CS_DATA_IR Register (0x0A / 0x0B / 0x0C) (Read Only)
CS_DATA_GREEN Register (0x0D / 0x0E / 0x0F) (Read Only)
CS_DATA_BLUE Register (0x10 / 0x11 / 0x12) (Read Only)
CS_DATA_RED Register (0x13 / 0x14 / 0x15) (Read Only)

these have to be read out to return a 16 or 20bit float etc. for each color.

Lux should be avaiable too, calculated from the green channel like in the datasheets
Lux Formula.
All needed infos should be given in the datasheet.
Related categories: C Programming Electronics Microcontroller Arduino I2C