Starting library to get the SI1143 Gesture Sensor to work. Currently only works in forced conversion mode.

Dependents:   Gesture_Sensor Gesture_Arm_Robot mbed_gesture Gesture_Sensor_Sample ... more

Revision:
3:cb3e8160f18e
Parent:
2:21381f11a5af
Child:
4:af8f820733e0
--- a/SI1143.cpp	Thu Oct 17 21:03:01 2013 +0000
+++ b/SI1143.cpp	Thu Oct 17 22:03:54 2013 +0000
@@ -36,7 +36,7 @@
 {
     wait_ms(30);
     i2c_ = new I2C(sda, scl);
-    //3.4MHz, as specified by the datasheet. (DO NOT USE)
+    //3.4MHz, as specified by the datasheet, but DO NOT USE.
     //i2c_->frequency(3400000);
     
     command(RESET);
@@ -152,11 +152,11 @@
     
     switch(point)
     {
-        case 1:     return VIS;
-        case 2:     return IR;
-        case 3:     return PS1;
-        case 4:     return PS2;
-        case 5:     return PS3;
+        case 1:     return PS1;
+        case 2:     return PS2;
+        case 3:     return PS3;
+        case 4:     return VIS;
+        case 5:     return IR;
         default:    return 0;
     }
     //data[0] = VIS;