Proyecto Nivel, Edgar Ochoa, Erik Garcia

Dependencies:   MMA8451Q mbed

Committer:
verden32
Date:
Fri Feb 12 14:46:54 2016 +0000
Revision:
27:85d44b207258
Parent:
23:c5ef5e0f3809
Child:
28:a34c81f0b387
final parte 2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
verden32 15:9bd3eb94c3d8 1 #ifndef OCHOA
verden32 15:9bd3eb94c3d8 2 #define OCHOA
verden32 23:c5ef5e0f3809 3 #include "mbed.h"
verden32 23:c5ef5e0f3809 4 void Mensajes(){
verden32 23:c5ef5e0f3809 5 if(150<data[1] && data[1]440>){
verden32 23:c5ef5e0f3809 6 pc.printf("Nivel estable");}
verden32 27:85d44b207258 7 wait(.4);
verden32 23:c5ef5e0f3809 8 if(0=<data[1] && data[1]>=-16000){
verden32 23:c5ef5e0f3809 9 pc.prinft("Nivel a la derecha");}
verden32 27:85d44b207258 10 wait(.4);
verden32 23:c5ef5e0f3809 11 if(0=<data[1] && data[1]>=16000){
verden32 23:c5ef5e0f3809 12 pc.prinft("Nivel a la izquierda");}
verden32 23:c5ef5e0f3809 13 if(-36=<data[0] && data[0]>=16000){
verden32 23:c5ef5e0f3809 14 pc.prinft("Nivel hacia adelante");}
verden32 27:85d44b207258 15 wait(.4);
verden32 23:c5ef5e0f3809 16 if(0=<data[0] && data[0]>=-16000){
verden32 23:c5ef5e0f3809 17 pc.prinft("Nivel hacia atras");}
verden32 27:85d44b207258 18 wait(.4);
verden32 23:c5ef5e0f3809 19 //150-432
verden32 23:c5ef5e0f3809 20 }
verden32 14:867038a3f806 21 #endif