This is the library to use the TCS3200 on the mbed
Dependents: ovvioBug ovvioBug my_example_TCS3200 Ex_TCS3200 ... more
Revision 1:9edf5a7e29e6, committed 2015-10-23
- Comitter:
- wingblank
- Date:
- Fri Oct 23 15:44:43 2015 +0000
- Parent:
- 0:6962dbee8f4b
- Commit message:
- 2
Changed in this revision
color.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6962dbee8f4b -r 9edf5a7e29e6 color.cpp --- a/color.cpp Fri Oct 23 15:39:06 2015 +0000 +++ b/color.cpp Fri Oct 23 15:44:43 2015 +0000 @@ -19,24 +19,24 @@ } - /* - * Returns the Red intensity + + /** Returns the Red intensity *@return the red intensity */ int ColorSensor::getRed() { return countR; } - /* - *Returns the blue intensity + + /**Returns the blue intensity *@return the blue intensity */ int ColorSensor::getBlue() { return countB; } - /* - *Returns the Green intensity + + /**Returns the Green intensity * *@return the green intensity */ @@ -44,15 +44,15 @@ { return countG; } - /* - *Used in the PDM calculation + + /**Used in the PDM calculation */ void ColorSensor::incCount() { counter++; } - /* - *Cycles through the channels to get the reading from the R, G, and B channels + + /**Cycles through the channels to get the reading from the R, G, and B channels */ void ColorSensor::getReading() {