Diego Rivera / Mbed 2 deprecated DetectorImpacto

Dependencies:   MMA8451Q mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers detectorimpacto.hh Source File

detectorimpacto.hh

00001 #ifndef detectorimpacto
00002 #define detectorimpacto
00003 
00004 #include "mbed.h"
00005 
00006  
00007 void detectorimpacto_choqueX(int dataX)
00008 {
00009     DigitalOut rojo(LED_RED);
00010     
00011     rojo=1;
00012     if(abs(dataX)>32000)
00013     {
00014        rojo=0;
00015        while(1)
00016        {
00017              rojo=!rojo;
00018              wait(.1);
00019         }
00020     }
00021 }
00022 #endif