Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

Revision:
20:19b719b6dcdc
Parent:
15:9bd3eb94c3d8
Child:
21:88761ef02671
--- a/Ochoa.h	Fri Feb 12 13:35:53 2016 +0000
+++ b/Ochoa.h	Fri Feb 12 13:38:04 2016 +0000
@@ -2,6 +2,9 @@
 #define OCHOA
 
 #include "mbed.h"
-//pues para iniciar 
 
+        r = 1.0 - abs(data[0]/16500.0);
+        g = 1.0 - abs(data[1]/16500.0);
+        b = 1.0 - abs(data[2]/16500.0);
+        
 #endif
\ No newline at end of file