Fork of EnvoyNespressoEndpoint that uses ColorDetectorV2

Dependencies:   ColorDetectorV2 ExternalFlashClient SNICInterface mbed-rtos mbed nsdl

Fork of EnvoyNespressoEndpoint by Nespresso RGB Sensor

Files at this revision

API Documentation at this revision

Comitter:
bridadan
Date:
Mon Jul 20 16:56:56 2015 +0000
Parent:
27:962964f52180
Commit message:
Switching to ColorDetectorV2. Upping gain on GroveColourSensor to 64X.

Changed in this revision

ColorDetector.lib Show diff for this revision Revisions of this file
ColorDetectorV2.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 962964f52180 -r a0759755a9a7 ColorDetector.lib
--- a/ColorDetector.lib	Fri Jul 17 09:00:18 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://developer.mbed.org/teams/Nespresso-RGB-Sensor/code/ColorDetector/#487acc0ebf8f
diff -r 962964f52180 -r a0759755a9a7 ColorDetectorV2.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ColorDetectorV2.lib	Mon Jul 20 16:56:56 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/Nespresso-RGB-Sensor/code/ColorDetectorV2/#b7ce6f2b2a46
diff -r 962964f52180 -r a0759755a9a7 main.cpp
--- a/main.cpp	Fri Jul 17 09:00:18 2015 +0000
+++ b/main.cpp	Mon Jul 20 16:56:56 2015 +0000
@@ -335,12 +335,11 @@
 
     // Various config
     colorSensor.powerUp();
-    colorSensor.setGain(1);
+    colorSensor.setGain(3);
     colorSensor.setBlockRead();
 
     // Create color detector
-    ColorDetector detector(&colorSensor, 15, 3, 2, 256, 4);
-    detector.setBaseline();
+    ColorDetector detector(&colorSensor, A0);
 
     // Pass reference to color detector
     set_color_detector(&detector);