Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

Ochoa.h

Committer:
verden32
Date:
2016-02-12
Revision:
23:c5ef5e0f3809
Parent:
15:9bd3eb94c3d8
Child:
25:2d2f8736f147
Child:
27:85d44b207258

File content as of revision 23:c5ef5e0f3809:

#ifndef OCHOA
#define OCHOA
#include "mbed.h"
  void Mensajes(){
           if(150<data[1] && data[1]440>){
               pc.printf("Nivel estable");}
          if(0=<data[1] && data[1]>=-16000){
               pc.prinft("Nivel a la derecha");}
        if(0=<data[1] && data[1]>=16000){
        pc.prinft("Nivel a la izquierda");}             
            if(-36=<data[0] && data[0]>=16000){
                pc.prinft("Nivel hacia adelante");}
        if(0=<data[0] && data[0]>=-16000){
        pc.prinft("Nivel hacia atras");}

//150-432
}
#endif