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: TestColorSensorSadPanda
Fork of ADJD-S371_ColourSens by
Diff: ADJDColourSensor.h
- Revision:
- 1:7944a9bbbe4f
- Parent:
- 0:47465be3223d
- Child:
- 2:f4607f324f03
--- a/ADJDColourSensor.h Fri Oct 01 13:39:51 2010 +0000
+++ b/ADJDColourSensor.h Tue Dec 03 07:39:28 2013 +0000
@@ -42,6 +42,20 @@
class ADJDColourSensor{
public:
ADJDColourSensor(PinName sda, PinName scl, PinName LED);
+
+ /**
+ * Read all the colors.
+ */
+
+ void readColors();
+
+ int red();
+ int green();
+ int blue();
+ int clear();
+
+ int dotProduct(int* features);
+ double dotProduct(double* features);
/**
* Read the colour sensor channels.
@@ -58,7 +72,7 @@
*/
int readOffset();
- float red, green, blue;
+ //float red, green, blue;
signed int redOffset, greenOffset, blueOffset, clearOffset;
