Pedro Colla / Mbed 2 deprecated CTo_VyV_TPAlarma

Dependencies:   mbed

Revision:
0:f42f18c56a88
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LuzDisparo.cpp	Sat Nov 16 00:48:19 2013 +0000
@@ -0,0 +1,15 @@
+#include "alarma.h"
+#include "mbed.h"
+
+void LuzDisparo(int Dl){
+    Luz = 0;
+    for(i=0;i<Dl;i++){               //0.2 seg. por ciclo de for
+        KeepAlive();     
+        if(Pulsador == 1){
+            Luz = 0;
+            return; 
+        }          
+    }                  
+    Luz = 1;
+    return;
+}
\ No newline at end of file