/* Converts the raw R/G/B values to color temperature in degrees Kelvin.  */
uint16_t tcs34725CalculateLux(uint16_t r, uint16_t g, uint16_t b)
/* Converts the raw R/G/B values to color temperature in degrees Kelvin.  */
uint16_t tcs34725CalculateLux(uint16_t r, uint16_t g, uint16_t b)
{
  float illuminance;
  illuminance = (-0.32466F * r) + (1.57837F * g) + (-0.73191F * b);
  return (uint16_t)illuminance;
}