adafruit / Adafruit_TCS34725

Arduino library driver for Adafruit's TCS34725 RGB Color Sensor Breakout
http://www.adafruit.com/products/1334
Other
151 stars 151 forks source link

Interrupt Readout #9

Closed JaKasb closed 8 years ago

JaKasb commented 8 years ago

Added an example for sensor readout via interrupts. As a result, we don't need any delay() in our code and we don't need to poll the sensor. In order to get the interrupt mode working, I added the missing Command Bit in the function clearInterrupt(). Furthermore I fixed a typo in the comments.

microbuilder commented 8 years ago

Thanks for the useful pull request!