Pedro Colla / Mbed 2 deprecated CTo_VyV_TPAlarma

Dependencies:   mbed

Test.cpp

Committer:
pcolla
Date:
2013-11-16
Revision:
0:f42f18c56a88

File content as of revision 0:f42f18c56a88:

#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; 
}