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.
Dependencies: ColorDetectorV2 mbed
Diff: main.cpp
- Revision:
- 2:0916f1a0f6a2
- Parent:
- 0:94990f7d44d2
diff -r b5c1538fadc0 -r 0916f1a0f6a2 main.cpp
--- a/main.cpp	Wed Jul 15 18:30:41 2015 +0000
+++ b/main.cpp	Thu Jul 16 16:21:55 2015 +0000
@@ -44,7 +44,7 @@
     GroveColourSensor colorSensor(&i2c);     
     
     colorSensor.powerUp();
-    colorSensor.setGain(1);
+    colorSensor.setGain(3);
     colorSensor.setBlockRead();
     
     ColorDetector detector(&colorSensor, COLOR_SENSOR_PR);