Laser Sensing Display for UI interfaces in the real world

Dependencies:   mbed

Fork of skinGames_forktest by Alvaro Cassinelli

Revision:
25:74cb85b85fd2
Parent:
24:4e52031a495b
Child:
27:1ce994629ffc
--- a/main.cpp	Mon Jun 18 08:00:57 2012 +0000
+++ b/main.cpp	Mon Jun 18 11:37:00 2012 +0000
@@ -279,8 +279,10 @@
     else if ( !strcmp(address[0], "setGreenLaser" ) ) {
         int value=data[0];
         if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data)
-            if (value==0) IO.setGreenPower(0);
-            else IO.setGreenPower(1);
+            if (value==0) 
+                blobconf.allSetColor(0x04);// only red (note that we are in blue for "test" mode... so the blue will appear when touching something anyway
+            else 
+                blobconf.allSetColor(0x06); // RED and GREEN (note: in the future, make a method to set colors properly! one by one...)
         }
     }