Basic functions for Gravitech's i2c color sensor

Dependencies:   mbed

Dependents:   R5 2016 Robotics Team 1

Revision:
1:b4139bd2715f
Parent:
0:42c0a779b199
diff -r 42c0a779b199 -r b4139bd2715f ColorSensor.h
--- a/ColorSensor.h	Sun Mar 20 23:28:40 2016 +0000
+++ b/ColorSensor.h	Sat Apr 09 11:01:08 2016 +0000
@@ -4,7 +4,7 @@
 #include "mbed.h"
 
 //constants for i2c register communication
-const int ADDR = 0x72;
+const int ADDR = 0x3A;
 const char CTRL_VAL = 0x80;
 const char* const CTRL = &CTRL_VAL;
 const char CTRL_INIT_VAL = 0x03;