Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

Ochoa.h

Committer:
verden32
Date:
2016-02-12
Revision:
25:2d2f8736f147
Parent:
23:c5ef5e0f3809

File content as of revision 25:2d2f8736f147:

#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.printf("Nivel a la derecha");}
        if(0<=data[1] && data[1]>=16000){
        pc.printf("Nivel a la izquierda");}             
            if(-36<=data[0] && data[0]>=16000){
                pc.printf("Nivel hacia adelante");}
        if(0<=data[0] && data[0]>=-16000){
        pc.printf("Nivel hacia atras");}

//150-432
}
#endif