I am using TCS34725 from Adafruit to perform color measures and I noticed a very annoying thing: every time the sensor is initialized (tcs.begin(); or if tcs.begin is not called, at the first measurement), a number 44 pops up in my Arduino Serial monitor. After a bit of debugging and digging the library down, I found this
Code: Select all
boolean Adafruit_TCS34725::begin(void)
{
Wire.begin();
/* Make sure we're actually connected */
uint8_t x = read8(TCS34725_ID);
Serial.println(x, HEX);
if (x != 0x44)
{
return false;
}
_tcs34725Initialised = true;
/* Set default integration time and gain */
setIntegrationTime(_tcs34725IntegrationTime);
setGain(_tcs34725Gain);
/* Note: by default, the device is in power down mode on bootup */
enable();
return true;
}
Thanks