pepe

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LuzDisparo.cpp Source File

LuzDisparo.cpp

00001 #include "alarma.h"
00002 #include "mbed.h"
00003 
00004 void LuzDisparo(int Dl){
00005     Luz = 0;
00006     for(i=0;i<Dl;i++){               //0.2 seg. por ciclo de for
00007         KeepAlive();     
00008         if(Pulsador == 1){
00009             Luz = 0;
00010             return; 
00011         }          
00012     }                  
00013     Luz = 1;
00014     return;
00015 }