/* Disables the device (putting it in lower power sleep mode)  */
err_t tcs34725Disable(void)
/* Disables the device (putting it in lower power sleep mode)  */
err_t tcs34725Disable(void)
{
  uint8_t reg = 0;
  ASSERT_STATUS(tcs34725Read8(TCS34725_ENABLE, &reg));
  ASSERT_STATUS(tcs34725Write8(TCS34725_ENABLE, reg & ~(TCS34725_ENABLE_PON | TCS34725_ENABLE_AEN)));
  return ERROR_NONE;
}