Spark Core and Adafruit TCS34725

A simple port of Adafruit TCS34725 Sensor Library for Spark Core. The sample application is based on the Adafruit Tutorial of TCS34725. The application reads the RGB Color from the sensor and publish an event with name colorinfo.

1 Like

I modified this code because the delay() function is unrealible with values lower the 5 msec

void Adafruit_TCS34725::enable(void)
  write8(TCS34725_ENABLE, TCS34725_ENABLE_PON);
  write8(TCS34725_ENABLE, TCS34725_ENABLE_PON | TCS34725_ENABLE_AEN);