Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: CapCouleur FindTheColor
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.
Generated on Tue Jul 12 2022 16:35:24 by
1.7.2
Grove Colour Sensor