Library for using multiple SI1142 sensor

Fork of SI1141 by Dave Cohen

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;