Pedro Colla / Mbed 2 deprecated CTo_VyV_TPAlarma

Dependencies:   mbed

Revision:
0:f42f18c56a88
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Test.cpp	Sat Nov 16 00:48:19 2013 +0000
@@ -0,0 +1,26 @@
+#include "alarma.h"
+#include "mbed.h"
+
+int     Test1 = 0;
+int     Test2 = 0;
+int     j = 0;
+int     resultado = 0;
+
+int Test(void){
+    Auto = 1;                               //Luego de un test se arma automáticamente.
+    while(Pulsador != 0){
+        LED(Titila);
+        KeepAlive();
+    } 
+    Test1 = SensorAnalogico();              //Sistema testea
+    Test2 = SensorDigital();                //Sistema testea
+    for(j=0;j<2;j++)
+        LED(Titila);                        //Usuario testea
+    LuzDisparo(delayLuz);                   //Usuario testea
+    Sirena(testSirena);                     //Usuario testea
+    if((Test1 != 1) || (Test2 != true))
+        resultado = 0;
+    else
+        resultado = 1;
+    return resultado; 
+}
\ No newline at end of file