Grove I2C Colour Sensor http://www.seeedstudio.com/depot/Grove-I2C-Color-Sensor-p-854.html?cPath=25_27

Dependents:   CapCouleur FindTheColor

Embed: (wiki syntax)

« Back to documentation index

GroveColourSensor Class Reference

GroveColourSensor Class Reference

This module is based on the color sensor TCS3414CS with digital output over I2C. More...

#include <GroveColourSensor.hpp>


Detailed Description

This module is based on the color sensor TCS3414CS with digital output over I2C.

http://www.seeedstudio.com/wiki/index.php?title=Twig_-_I2C_Color_Sensor_v0.9b

example use:

GroveColourSensor colorSensor(I2C_SDA0, I2C_SCL0);

colorSensor.powerUp(); unsigned colour; for (colour = GroveColourSensor::GREEN; colour < GroveColourSensor::NUM_COLORS; colour++) { uint16_t colourValue = colorSensor.readColour(colour); ... } colorSensor.powerDown();

Definition at line 39 of file GroveColourSensor.hpp.