Discrete RGB colour sensor using a colour LED flashing at high speed and a monochrome LDR (light dependent resistor) for detecting the colour via ADC conversion. The library implements interrupt driven ADC conversion at high speed (370 RGB readings per second, 128 times oversampling per channelfor noise reduction). The detection can optionally run in background.

Dependents:   rgb_sensor_buffer discrete_rgb_color_sensor_example

Download repository: zip gz

Files at revision 10:b95dfd2d6d4d

Name Size Actions
rgb_sensor.cpp 6745 Revisions Annotate
rgb_sensor.h 2131 Revisions Annotate