Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

versionerik.h

Committer:
through
Date:
2016-02-12
Revision:
17:11ceb54a2e7d
Parent:
16:7e0223097f77
Child:
22:de1ab79df237

File content as of revision 17:11ceb54a2e7d:

#ifndef versionerik
#define versionerik
#include "mbed.h"

void erik_nivel(){
    
        r = 1.0 - abs(data[0]/16500.0);
        g = 1.0 - abs(data[1]/16500.0);
        b = 1.0 - abs(data[2]/16500.0);
        
    
        pc.printf("%d,%d,%d,\n",data[0],data[1],data[2]);
        
        wait(0.4);
        
    if(){
        
        
        }
    }
    
#endif