Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

Ochoa.h

Committer:
verden32
Date:
2016-02-12
Revision:
28:a34c81f0b387
Parent:
27:85d44b207258
Child:
29:13938c8e3765

File content as of revision 28:a34c81f0b387:

#ifndef OCHOA
#define OCHOA
#include "mbed.h"
  void Mensajes(){
           if(150<data[1] && data[1]>440){
               pc.printf("Nivel estable");}
               wait(.4);
          if(0<=data[1] && data[1]>=-16000){
               pc.printf("Nivel a la derecha");}
               wait(.4);
        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");}
                wait(.4);
        if(0<=data[0] && data[0]>=-16000){
        pc.printf("Nivel hacia atras");}
            wait(.4);
//150-432
}
#endif